From 962772547d8986b714c67dddae6a199c7121a192 Mon Sep 17 00:00:00 2001 From: xq2005 Date: Thu, 30 May 2013 09:03:02 +0000 Subject: [PATCH] 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 --- xCAT/postscripts/sudoer | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xCAT/postscripts/sudoer b/xCAT/postscripts/sudoer index cfb9b562b..65c540c27 100755 --- a/xCAT/postscripts/sudoer +++ b/xCAT/postscripts/sudoer @@ -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