diff options
author | Javier Jardón <jjardon@gnome.org> | 2016-03-15 20:27:39 +0000 |
---|---|---|
committer | Baserock Gerrit <gerrit@baserock.org> | 2016-03-18 11:09:40 +0000 |
commit | 8ce6149ae89c9c8b632bef13edd577de67c09e8c (patch) | |
tree | 9e607990f148c8217fd4ea15f0f2591ec9f10cd6 | |
parent | 57f3c7dc132e8574405f28ea55b9fb92882f69e9 (diff) | |
download | definitions-8ce6149ae89c9c8b632bef13edd577de67c09e8c.tar.gz |
Use integration commands to enable opensshd service
So the location of the service files is not harcoded in
/lib/systemd/system
Change-Id: Ifa771678b11391a5759f370805b8b23b043042e4
-rw-r--r-- | strata/foundation/openssh.morph | 9 |
1 files 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 |