mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-17 06:23:00 +02:00
aws: Execute reboot when an update requires one
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -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)"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user