- sysconfig_sshd=/etc/sysconfig/sshd
- [ -r $sysconfig_sshd ] && \
- mv $sysconfig_sshd $sysconfig_sshd.pl_sshd
- echo "OPTIONS='-o \"AuthorizedKeysFile $keydir/%u/authorized_keys\"'" \
- >$sysconfig_sshd
-
- # link sshd pam config to pl_sshd so that we can actually login
- pam_pl_sshd=/etc/pam.d/pl_sshd
- [ -r $pam_pl_sshd ] || ln -s sshd $pam_pl_sshd
-
- chkconfig --add pl_sshd
-
- if [[ "$RUNLEVEL" != "unknown" ]]; then
- #
- # starting pl_sshd before restarting sshd gives us a
- # chance of recovery if stopping sshd aborts the
- # update process e.g., because we're logged in using
- # ssh.
- #
- /etc/init.d/autofs restart
- /etc/init.d/pl_sshd start
- /etc/init.d/sshd restart
- fi
+ echo
+ echo "You need to manually restart autofs and sshd, and"
+ echo "start the pl_sshd (ssh on port 806) service."
+ echo "Make sure you know what you're doing, particularly"
+ echo "if you're making this change over an ssh connection."
+ echo
+ fi