mirror of
https://github.com/deajan/obackup.git
synced 2024-12-26 15:33:41 +01:00
Added Remote_3rd_party_host value correction
This commit is contained in:
parent
4e5dfa31a9
commit
7f5126ad28
@ -6,7 +6,7 @@ AUTHOR="(C) 2016 by Orsiris de Jong"
|
|||||||
CONTACT="http://www.netpower.fr/obacup - ozy@netpower.fr"
|
CONTACT="http://www.netpower.fr/obacup - ozy@netpower.fr"
|
||||||
OLD_PROGRAM_VERSION="v1.x"
|
OLD_PROGRAM_VERSION="v1.x"
|
||||||
NEW_PROGRAM_VERSION="v2.1x"
|
NEW_PROGRAM_VERSION="v2.1x"
|
||||||
PROGRAM_BUILD=2016091401
|
PROGRAM_BUILD=2016091402
|
||||||
|
|
||||||
if ! type "$BASH" > /dev/null; then
|
if ! type "$BASH" > /dev/null; then
|
||||||
echo "Please run this script only with bash shell. Tested on bash >= 3.2"
|
echo "Please run this script only with bash shell. Tested on bash >= 3.2"
|
||||||
@ -281,6 +281,7 @@ function RewriteOldConfigFiles {
|
|||||||
sed -i'.tmp' '/^INSTANCE_ID=*/a\'$'\n''BACKUP_TYPE=local\'$'\n''' "$config_file"
|
sed -i'.tmp' '/^INSTANCE_ID=*/a\'$'\n''BACKUP_TYPE=local\'$'\n''' "$config_file"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
sed -i'.tmp' 's/^REMOTE_3RD_PARTY_HOST=/REMOTE_3RD_PARTY_HOSTS=/g' "$config_file"
|
||||||
}
|
}
|
||||||
|
|
||||||
function AddMissingConfigOptions {
|
function AddMissingConfigOptions {
|
||||||
@ -300,8 +301,6 @@ function AddMissingConfigOptions {
|
|||||||
sed -i'.tmp' '/onfig file rev*/a\'$'\n'${KEYWORDS[$counter]}'="'"${VALUES[$counter]}"'"\'$'\n''' "$config_file"
|
sed -i'.tmp' '/onfig file rev*/a\'$'\n'${KEYWORDS[$counter]}'="'"${VALUES[$counter]}"'"\'$'\n''' "$config_file"
|
||||||
fi
|
fi
|
||||||
echo "Added missing ${KEYWORDS[$counter]} config option with default option [${VALUES[$counter]}]"
|
echo "Added missing ${KEYWORDS[$counter]} config option with default option [${VALUES[$counter]}]"
|
||||||
else
|
|
||||||
echo "${KEYWORDS[$counter]} found"
|
|
||||||
fi
|
fi
|
||||||
counter=$((counter+1))
|
counter=$((counter+1))
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user