From 036b7a3050152f10bdbf592283f4fe43b8388433 Mon Sep 17 00:00:00 2001 From: Lawrence Date: Mon, 2 Oct 2017 03:36:51 +0800 Subject: [PATCH] I forgot a couple of renames. Fixed --- installers/common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installers/common.sh b/installers/common.sh index 6c2e3c91..1bdd27e4 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -81,7 +81,7 @@ function enable_php_lighttpd() { function create_raspap_directories() { install_log "Creating RaspAP directories" if [ -d "$raspap_dir" ]; then - sudo mv $raspap_dir $raspap_dir.original || install_error "Unable to move old '$raspap_dir' out of the way" + sudo mv $raspap_dir "$raspap_dir.`date +%F-%R`" || install_error "Unable to move old '$raspap_dir' out of the way" fi sudo mkdir -p "$raspap_dir" || install_error "Unable to create directory '$raspap_dir'" # Create a directory for existing file backups. @@ -93,7 +93,7 @@ function create_raspap_directories() { # Fetches latest files from github to webroot function download_latest_files() { if [ -d "$webroot_dir" ]; then - sudo mv $webroot_dir "$webroot_dir.old" || install_error "Unable to remove old webroot directory" + sudo mv $webroot_dir "$webroot_dir.`date +%F-%R`" || install_error "Unable to remove old webroot directory" fi install_log "Cloning latest files from github"