diff --git a/elements/openssh-server/post-install.d/80-enable-sshd-service b/elements/openssh-server/post-install.d/80-enable-sshd-service index 50238bbcc..ee59b3a41 100755 --- a/elements/openssh-server/post-install.d/80-enable-sshd-service +++ b/elements/openssh-server/post-install.d/80-enable-sshd-service @@ -22,8 +22,12 @@ case "$DIB_INIT_SYSTEM" in # let dib-init-system's postinstall handle enabling init scripts exit 0 ;; + sysv) + # ssh is enabled by default, nothing to do + exit 0 + ;; *) - echo "Unsupported init system" + echo "Unsupported init system $DIB_INIT_SYSTEM" exit 1 ;; esac diff --git a/elements/runtime-ssh-host-keys/post-install.d/80-ssh-keygen b/elements/runtime-ssh-host-keys/post-install.d/80-ssh-keygen index 926a12d69..48a844485 100755 --- a/elements/runtime-ssh-host-keys/post-install.d/80-ssh-keygen +++ b/elements/runtime-ssh-host-keys/post-install.d/80-ssh-keygen @@ -24,8 +24,12 @@ case "$DIB_INIT_SYSTEM" in # let dib-init-system's postinstall handle enabling init scripts exit 0 ;; + sysv) + # nothing to do + exit 0 + ;; *) - echo "Unsupported init system" + echo "Unsupported init system $DIB_INIT_SYSTEM" exit 1 ;; esac