From 8ce6149ae89c9c8b632bef13edd577de67c09e8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Tue, 15 Mar 2016 20:27:39 +0000 Subject: Use integration commands to enable opensshd service So the location of the service files is not harcoded in /lib/systemd/system Change-Id: Ifa771678b11391a5759f370805b8b23b043042e4 --- strata/foundation/openssh.morph | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/strata/foundation/openssh.morph b/strata/foundation/openssh.morph index 45339156..7d38791f 100644 --- a/strata/foundation/openssh.morph +++ b/strata/foundation/openssh.morph @@ -24,6 +24,9 @@ install-commands: - chmod go= "$DESTDIR"/var/lib/sshd - install -m 744 sshd-keygen "$DESTDIR/$PREFIX/sbin/sshd-keygen" - install -m 755 contrib/ssh-copy-id "$DESTDIR/$PREFIX/bin/ssh-copy-id" -- mkdir -p "$DESTDIR/lib/systemd/system/multi-user.target.wants" -- install -m 644 opensshd.service "$DESTDIR/lib/systemd/system/opensshd.service" -- ln -s ../opensshd.service "$DESTDIR/lib/systemd/system/multi-user.target.wants/opensshd.service" +- mkdir -p "$DESTDIR$PREFIX/lib/systemd/system/" +- install -m 644 opensshd.service "$DESTDIR$PREFIX/lib/systemd/system/opensshd.service" +system-integration: + openssh-misc: + 00-enable-opensshd-unit: + - systemctl enable opensshd -- cgit v1.2.1