From 59916f47dd47e884a9e24bec61682aa9638165ac Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Tue, 2 Oct 2018 16:33:50 +0200 Subject: T867: set the upgraded flag on image update if the user choses to save configuration. --- scripts/install/install-image-existing | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/install/install-image-existing') diff --git a/scripts/install/install-image-existing b/scripts/install/install-image-existing index f38e3701..21984906 100755 --- a/scripts/install/install-image-existing +++ b/scripts/install/install-image-existing @@ -218,6 +218,10 @@ if [ $space_avail -gt $space_needed_configdata ]; then mkdir -p $ndir find $VYATTA_NEW_CFG_DIR -maxdepth 1 -mindepth 1 \ -exec cp '-a' '{}' "$ndir/" ';' + + # Set the upgraded flag + touch $ndir/.upgraded + chgrp -R vyattacfg $ndir chmod -R 775 $ndir if [ -x $DEMO_MIGRATE_SCRIPT ]; then -- cgit v1.2.3