From 375d7d12dab7c8b60246f4bf572547b58ac49ceb Mon Sep 17 00:00:00 2001 From: glen Date: Fri, 5 Mar 2021 13:49:51 -0500 Subject: [PATCH] move --- install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index d3a3825..d0af751 100755 --- a/install.sh +++ b/install.sh @@ -1,5 +1,3 @@ -lokinet_dir="/usr/local/etc/lokinet" - function show_splash() { cyan='\033[1;36m' @@ -40,6 +38,9 @@ echo "Install resolvconf and configure" } # Fetches latest files from github to lokinet installation directory function download_latest_files() { + + lokinet_dir="/usr/local/etc/lokinet" + if [ -d "$lokinet_dir" ]; then sudo mv $lokinet_dir "$lokinet_dir.`date +%F-%R`" || install_error "Unable to remove old lokinet-installer directory" fi