Decouple installer from the base image script

This means that the base image does not have the installer anymore
and needs to be copied over.

Part of #152
This commit is contained in:
Girish Ramakrishnan
2016-12-23 16:38:46 -08:00
parent 7e592f34bd
commit fae0ba5678
6 changed files with 20 additions and 42 deletions
+4
View File
@@ -143,6 +143,10 @@ if ! $ssh22 "root@${server_ip}" "/bin/bash /root/initializeBaseUbuntuImage.sh ${
exit 1
fi
echo "Copying installer.sh"
$scp22 "${SCRIPT_DIR}/../scripts/installer.sh" root@${server_ip}:/etc/installer.sh
$ssh22 "root@${server_ip}" "chmod +x /etc/installer.sh"
echo "Shutting down server with id : ${server_id}"
$ssh22 "root@${server_ip}" "shutdown -f now" || true # shutdown sometimes terminates ssh connection immediately making this command fail