Skip to content

Commit

Permalink
Update azuredeploy.sh
Browse files Browse the repository at this point in the history
added a single quote before and after the $ADMIN_PASSWORD to avoid issue special characters in the admin password (lines 121, 122 and 123)
  • Loading branch information
matiasma committed Nov 4, 2015
1 parent 3d8cc21 commit 53699fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions torque-cluster/azuredeploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ do
worker=$WORKER_NAME$i
sudo -u $ADMIN_USERNAME scp /tmp/hosts.$$ $ADMIN_USERNAME@$worker:/tmp/hosts >> /tmp/azuredeploy.log.$$ 2>&1
sudo -u $ADMIN_USERNAME scp torque-package-mom-linux-x86_64.sh $ADMIN_USERNAME@$worker:/tmp/. >> /tmp/azuredeploy.log.$$ 2>&1
sudo -u $ADMIN_USERNAME ssh -tt $worker "echo $ADMIN_PASSWORD | sudo -kS sh -c 'cat /tmp/hosts>>/etc/hosts'"
sudo -u $ADMIN_USERNAME ssh -tt $worker "echo $ADMIN_PASSWORD | sudo -kS /tmp/torque-package-mom-linux-x86_64.sh --install"
sudo -u $ADMIN_USERNAME ssh -tt $worker "echo $ADMIN_PASSWORD | sudo -kS /usr/local/sbin/pbs_mom"
sudo -u $ADMIN_USERNAME ssh -tt $worker "echo '$ADMIN_PASSWORD' | sudo -kS sh -c 'cat /tmp/hosts>>/etc/hosts'"
sudo -u $ADMIN_USERNAME ssh -tt $worker "echo '$ADMIN_PASSWORD' | sudo -kS /tmp/torque-package-mom-linux-x86_64.sh --install"
sudo -u $ADMIN_USERNAME ssh -tt $worker "echo '$ADMIN_PASSWORD' | sudo -kS /usr/local/sbin/pbs_mom"
echo $worker >> /var/spool/torque/server_priv/nodes
i=`expr $i + 1`
done
Expand Down

0 comments on commit 53699fe

Please sign in to comment.