aws: Execute reboot when an update requires one

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2018-08-15 11:45:27 +01:00
parent 3eeff87fe6
commit 281d75c945

View File

@@ -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)"