Skip to content

Commit 141adf5

Browse files
committed
Look for both ssh service names also for openrc
While alpine calls it "sshd", in debian it is called "ssh". So look for both, if running Debian with OpenRC instead... Signed-off-by: Anders F Björklund <[email protected]>
1 parent 170824e commit 141adf5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/cidata/cidata.TEMPLATE.d/boot/11-colorterm-environment.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ else
2424
fi
2525

2626
if [ -f /sbin/openrc-run ]; then
27-
rc-service --ifstarted sshd reload
27+
if [ -f etc/init.d/ssh ]; then
28+
rc-service --ifstarted ssh reload
29+
elif [ -f etc/init.d/sshd ]; then
30+
rc-service --ifstarted sshd reload
31+
fi
2832
elif command -v systemctl >/dev/null 2>&1; then
2933
if systemctl -q is-active ssh; then
3034
systemctl reload ssh

0 commit comments

Comments
 (0)