mirror of
https://github.com/deajan/obackup.git
synced 2024-11-12 19:03:42 +01:00
Upgrade script updates header too
This commit is contained in:
parent
51b43487e2
commit
add5c69929
@ -6,7 +6,7 @@ AUTHOR="(C) 2016 by Orsiris de Jong"
|
||||
CONTACT="http://www.netpower.fr/obacup - ozy@netpower.fr"
|
||||
OLD_PROGRAM_VERSION="v1.x"
|
||||
NEW_PROGRAM_VERSION="v2.1x"
|
||||
PROGRAM_BUILD=20160817.1
|
||||
PROGRAM_BUILD=2016081901
|
||||
|
||||
## type -p does not work on platforms other than linux (bash). If if does not work, always as$
|
||||
if ! type "$BASH" > /dev/null; then
|
||||
@ -204,6 +204,9 @@ function RewriteConfigFiles {
|
||||
sed -i'.tmp' '/^STOP_ON_CMD_ERROR=*/a\'$'\n''RUN_AFTER_CMD_ON_ERROR=no\'$'\n''' "$config_file"
|
||||
fi
|
||||
|
||||
# "onfig file rev" to deal with earlier variants of the file
|
||||
sed -i'.tmp' '/onfig file rev/c\###### '$SUBPROGRAM' config file rev '$PROGRAM_BUILD "$config_file"
|
||||
|
||||
rm -f "$config_file.tmp"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user