add-license-1
glen 3 years ago
parent 6575873ead
commit 375d7d12da

@ -1,5 +1,3 @@
lokinet_dir="/usr/local/etc/lokinet"
function show_splash() { function show_splash() {
cyan='\033[1;36m' cyan='\033[1;36m'
@ -40,6 +38,9 @@ echo "Install resolvconf and configure"
} }
# Fetches latest files from github to lokinet installation directory # Fetches latest files from github to lokinet installation directory
function download_latest_files() { function download_latest_files() {
lokinet_dir="/usr/local/etc/lokinet"
if [ -d "$lokinet_dir" ]; then if [ -d "$lokinet_dir" ]; then
sudo mv $lokinet_dir "$lokinet_dir.`date +%F-%R`" || install_error "Unable to remove old lokinet-installer directory" sudo mv $lokinet_dir "$lokinet_dir.`date +%F-%R`" || install_error "Unable to remove old lokinet-installer directory"
fi fi

Loading…
Cancel
Save