From: Michael Tremer Date: Wed, 15 Aug 2018 10:45:27 +0000 (+0100) Subject: aws: Execute reboot when an update requires one X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=281d75c9457673aac5a9d190a5f4e97d0e60c5ee;p=people%2Fms%2Fipfire-2.x.git aws: Execute reboot when an update requires one Signed-off-by: Michael Tremer --- diff --git a/src/initscripts/helper/aws-setup b/src/initscripts/helper/aws-setup index fbf63a1ab0..3dbdfe3fc6 100644 --- a/src/initscripts/helper/aws-setup +++ b/src/initscripts/helper/aws-setup @@ -120,6 +120,12 @@ import_aws_configuration() { # Install all available updates pakfire update && pakfire upgrade -y + # If an update requires a reboot, we will do it + if [ -e "/var/run/need_reboot" ]; then + reboot + exit 1 + fi + # Download user-data local user_data="$(get user-data)"