]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
aws: Don't update the system on first boot
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 31 Aug 2018 10:08:53 +0000 (11:08 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 31 Aug 2018 10:08:53 +0000 (11:08 +0100)
This will violate AWS policy and therefore had to be removed.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/helper/aws-setup

index b2bb5a966962d3ba3692bb64169299411835430e..e3f1d0a9f41bcfffae8a13e25a761fafc017a20e 100644 (file)
@@ -98,18 +98,6 @@ import_aws_configuration() {
 
        # Download the user-data script only on the first boot
        if [ ! -e "/var/ipfire/main/firstsetup_ok" ]; then
-               # Initialize pakfire
-               /etc/init.d/pakfire start &>/dev/null
-
-               # Install all available updates
-               ( pakfire update && pakfire upgrade -y ) &>/dev/null
-
-               # 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)"