From 05c4198655a02eaca1af67bee641dbf0fd2e0f8e Mon Sep 17 00:00:00 2001 From: jim-p Date: Fri, 6 Oct 2017 13:06:07 -0400 Subject: [PATCH] If ECL picks up a config on the first boot post-install, trigger a package sync and don't run the wizard. (cherry picked from commit 695f7d5c054b7df724ea4fd6883a29a2da60cca5) (cherry picked from commit 661c5b7f6a80e9a2819393164c3557f74bf9a023) (cherry picked from commit 7d9248c15989b57517698a83ca6abeb67f3db170) --- src/etc/ecl.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/etc/ecl.php b/src/etc/ecl.php index c482260636..2b6bb50f73 100755 --- a/src/etc/ecl.php +++ b/src/etc/ecl.php @@ -184,6 +184,11 @@ function find_config_xml() { backup_config(); echo "Restoring [{$slice}] {$config_location}...\n"; restore_backup($config_location); + if (file_exists('/cf/conf/trigger_initial_wizard')) { + echo "First boot after install, setting flag for package sync and disabling wizard...\n"; + touch('/cf/conf/needs_package_sync'); + @unlink('/cf/conf/trigger_initial_wizard'); + } echo "Cleaning up...\n"; exec("/sbin/umount /tmp/mnt/cf"); exit;