mirror of
https://github.com/unraid/webgui.git
synced 2026-04-25 20:01:38 -05:00
Correct handling of shsd start/restart/stop.
This commit is contained in:
@@ -47,9 +47,14 @@ else
|
||||
fi
|
||||
|
||||
# enable/disable SSH service
|
||||
/etc/rc.d/rc.sshd stop >/dev/null
|
||||
if [[ $USE_SSH == yes ]]; then
|
||||
/etc/rc.d/rc.sshd start >/dev/null
|
||||
if [[ -r /var/run/sshd.pid ]]; then
|
||||
/etc/rc.d/rc.sshd restart >/dev/null
|
||||
else
|
||||
/etc/rc.d/rc.sshd start >/dev/null
|
||||
fi
|
||||
else
|
||||
/etc/rc.d/rc.sshd stop >/dev/null
|
||||
fi
|
||||
|
||||
# update TELNET listening port
|
||||
|
||||
Reference in New Issue
Block a user