diff options
author | Daniil Baturin <daniil@baturin.org> | 2018-10-02 16:33:50 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2018-10-02 16:33:50 +0200 |
commit | 59916f47dd47e884a9e24bec61682aa9638165ac (patch) | |
tree | 0527728638b0fafeeb0b8b23fcc8b8fcb1ed36d4 /scripts/install | |
parent | b6a868a6676ca8068d2acf2a3d9e2480bbcb8042 (diff) | |
download | vyatta-cfg-system-59916f47dd47e884a9e24bec61682aa9638165ac.tar.gz vyatta-cfg-system-59916f47dd47e884a9e24bec61682aa9638165ac.zip |
T867: set the upgraded flag on image update if the user choses to save configuration.
Diffstat (limited to 'scripts/install')
-rwxr-xr-x | scripts/install/install-image-existing | 4 |
1 files changed, 4 insertions, 0 deletions
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 |