base-files: sysupgrade: s/do_save_conffiles/create_backup_archive/
Rename function to more accurate and self-explanatory name: 1. Use "archive" in name as this functions creates tar archive 2. Avoid "conffiles" as this function may archive more than that Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
This commit is contained in:
parent
4ba5eba94c
commit
4a1b94adba
1 changed files with 3 additions and 3 deletions
|
@ -234,7 +234,7 @@ fi
|
||||||
|
|
||||||
include /lib/upgrade
|
include /lib/upgrade
|
||||||
|
|
||||||
do_save_conffiles() {
|
create_backup_archive() {
|
||||||
local conf_tar="$1"
|
local conf_tar="$1"
|
||||||
|
|
||||||
local umount_etcbackup_dir=0
|
local umount_etcbackup_dir=0
|
||||||
|
@ -297,7 +297,7 @@ if [ $CONF_BACKUP_LIST -eq 1 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$CONF_BACKUP" ]; then
|
if [ -n "$CONF_BACKUP" ]; then
|
||||||
do_save_conffiles "$CONF_BACKUP"
|
create_backup_archive "$CONF_BACKUP"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -367,7 +367,7 @@ if [ -n "$CONF_IMAGE" ]; then
|
||||||
get_image "$CONF_IMAGE" "cat" > "$CONF_TAR"
|
get_image "$CONF_IMAGE" "cat" > "$CONF_TAR"
|
||||||
export SAVE_CONFIG=1
|
export SAVE_CONFIG=1
|
||||||
elif ask_bool $SAVE_CONFIG "Keep config files over reflash"; then
|
elif ask_bool $SAVE_CONFIG "Keep config files over reflash"; then
|
||||||
[ $TEST -eq 1 ] || do_save_conffiles "$CONF_TAR" || exit
|
[ $TEST -eq 1 ] || create_backup_archive "$CONF_TAR" || exit
|
||||||
export SAVE_CONFIG=1
|
export SAVE_CONFIG=1
|
||||||
else
|
else
|
||||||
[ $TEST -eq 1 ] || rm -f "$CONF_TAR"
|
[ $TEST -eq 1 ] || rm -f "$CONF_TAR"
|
||||||
|
|
Loading…
Reference in a new issue