bug4811: wait for image upgrade to finish (/tmp/image-upgrade-finished) before continuing with httpd start etc.

This commit is contained in:
Axel Uhl
2020-12-03 00:00:59 +01:00
parent 71a3ce2bcc
commit 80621b4c21
5 changed files with 39 additions and 2 deletions
+1
View File
@@ -55,6 +55,7 @@ clean_startup_logs
# Finally, shut down the node unless "no-shutdown" was provided in the user data, so that a new AMI can be constructed cleanly
if /opt/aws/bin/ec2-metadata -d | grep "^no-shutdown$"; then
echo "Shutdown disabled by no-shutdown option in user data"
touch /tmp/image-upgrade-finished
else
shutdown -h now &
fi