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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user