Don't copy the config file to itself
This commit is contained in:
parent
f0ed04418f
commit
1e4298f204
|
@ -814,7 +814,9 @@ function read_configuration {
|
||||||
|
|
||||||
if [ -f $CONFIGURATION_FILE ]; then
|
if [ -f $CONFIGURATION_FILE ]; then
|
||||||
# Ensure that a copy of the config exists for upgrade purposes
|
# Ensure that a copy of the config exists for upgrade purposes
|
||||||
cp $CONFIGURATION_FILE /root/freedombone.cfg
|
if [[ $CONFIGURATION_FILE != '/root/freedombone.cfg' ]]; then
|
||||||
|
cp $CONFIGURATION_FILE /root/freedombone.cfg
|
||||||
|
fi
|
||||||
|
|
||||||
if grep -q "LETSENCRYPT_SERVER" $CONFIGURATION_FILE; then
|
if grep -q "LETSENCRYPT_SERVER" $CONFIGURATION_FILE; then
|
||||||
LETSENCRYPT_SERVER=$(grep "LETSENCRYPT_SERVER" $CONFIGURATION_FILE | awk -F '=' '{print $2}')
|
LETSENCRYPT_SERVER=$(grep "LETSENCRYPT_SERVER" $CONFIGURATION_FILE | awk -F '=' '{print $2}')
|
||||||
|
|
Loading…
Reference in New Issue