Changed the way to backup an existing .toml file
Use .bak extension
This commit is contained in:
parent
7cd25e062e
commit
8b25264344
|
@ -13,7 +13,7 @@ CONFIG_FILE="/data/media/0/dnscrypt-proxy/dnscrypt-proxy.toml"
|
|||
# sed -i -e 's/\[::1\]:53/\[::1\]:5354/g' $CONFIG_FILE
|
||||
|
||||
## quindecim
|
||||
cp -afv $CONFIG_FILE ${CONFIG_FILE}-backup-`date +%Y%m%d%H%M`
|
||||
cp -afv $CONFIG_FILE ${CONFIG_FILE}-`date +%Y%m%d%H%M`.bak
|
||||
fi
|
||||
|
||||
cp -afv /data/media/0/dnscrypt-proxy/my-dnscrypt-proxy.toml $CONFIG_FILE
|
Loading…
Reference in New Issue