Adding a distro test to start sshd service correctly on Ubuntu. Tracked by Bug 3415378
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10674 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
89919c7272
commit
bc98f3fb4c
@ -145,6 +145,20 @@ fi
|
||||
|
||||
# start up the sshd for syncfiles postscript to do the sync work
|
||||
logger -t xCAT "start up sshd"
|
||||
service sshd start
|
||||
|
||||
DISTRO=`lsb_release -si`
|
||||
if [ $DISTRO = "Ubuntu" ]
|
||||
then
|
||||
if [ ! -d /var/run/sshd ]
|
||||
then
|
||||
mkdir /var/run/sshd
|
||||
chmod 0755 /var/run/sshd
|
||||
/usr/sbin/sshd -f /etc/ssh/sshd_config
|
||||
else
|
||||
service ssh restart
|
||||
fi
|
||||
else
|
||||
service sshd start
|
||||
fi
|
||||
|
||||
kill -9 $CREDPID
|
||||
|
Loading…
Reference in New Issue
Block a user