Skip to content

Commit

Permalink
If ECL picks up a config on the first boot post-install, trigger a pa…
Browse files Browse the repository at this point in the history
…ckage sync and don't run the wizard.

(cherry picked from commit 695f7d5)
(cherry picked from commit 661c5b7)
(cherry picked from commit 7d9248c)
  • Loading branch information
jim-p committed Oct 6, 2017
1 parent c604b57 commit 05c4198
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/etc/ecl.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 05c4198

Please sign in to comment.