From 67d2feb4dca42978135f8dd0313ca4d48f854b62 Mon Sep 17 00:00:00 2001 From: Christoph Date: Sat, 25 Feb 2017 16:16:24 +0100 Subject: [PATCH] Delete existing Backup directory, to avoid having old (unused) files from earlier configurations. --- copy_gateway-config.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/copy_gateway-config.sh b/copy_gateway-config.sh index 38ac2cb..cf9ca00 100755 --- a/copy_gateway-config.sh +++ b/copy_gateway-config.sh @@ -58,8 +58,15 @@ _network=$1 homedir_user=`eval realpath ~$user` _dir=${_network}-config + + +# - Delete existing Backup directory, to avoid having old (unused) files from +# - earlier configurations +# +rm -rf ${homedir_user}/${_dir} mkdir -p ${homedir_user}/${_dir} + # - Nameserver Bind # - /etc/bind/* # -