sudoer support on ubuntu/debian

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16474 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
xq2005 2013-05-30 09:02:31 +00:00
parent dccddf6428
commit ccfd373fd3

View File

@ -53,4 +53,8 @@ chown $SUDOER:users $HOME/.ssh/authorized_keys
# Restart the SSHD for syncfiles postscript to do the sync work
logger -t xCAT -p local4.info "Restarting SSHD"
service sshd restart
if [ -f "/etc/debian_version" ];then
service ssh restart
else
service sshd restart
fi