sudoer support on ubuntu/debian

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16475 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
xq2005 2013-05-30 09:03:02 +00:00
parent 3341f2399b
commit 962772547d

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