Skip to content

Commit 11cbe95

Browse files
committed
on rocky9 sshd service is called sshd instead of ssh as the rest of the platforms call it
1 parent 84b1fb9 commit 11cbe95

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gpu/install_gpu_driver.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1958,7 +1958,9 @@ function harden_sshd_config() {
19581958
# TODO: test whether sshd will reload with this change before mv
19591959
mv /tmp/sshd_config_new /etc/ssh/sshd_config
19601960
done
1961-
systemctl reload ssh
1961+
local svc=ssh
1962+
if ge_rocky9 ; then svc="sshd" ; fi
1963+
systemctl reload "${svc}"
19621964
}
19631965

19641966
function prepare_to_install(){

0 commit comments

Comments
 (0)