Don't copy the config file to itself

This commit is contained in:
Bob Mottram 2015-11-26 11:03:34 +00:00
parent f0ed04418f
commit 1e4298f204
1 changed files with 3 additions and 1 deletions

View File

@ -814,7 +814,9 @@ function read_configuration {
if [ -f $CONFIGURATION_FILE ]; then
# Ensure that a copy of the config exists for upgrade purposes
if [[ $CONFIGURATION_FILE != '/root/freedombone.cfg' ]]; then
cp $CONFIGURATION_FILE /root/freedombone.cfg
fi
if grep -q "LETSENCRYPT_SERVER" $CONFIGURATION_FILE; then
LETSENCRYPT_SERVER=$(grep "LETSENCRYPT_SERVER" $CONFIGURATION_FILE | awk -F '=' '{print $2}')