From 951228275c2ba581d403ce93f1b7e3b38720ab6e Mon Sep 17 00:00:00 2001 From: billz Date: Thu, 16 Nov 2017 22:38:03 +0000 Subject: [PATCH] Fixes #138 --- installers/common.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/installers/common.sh b/installers/common.sh index 0dfc5434..1c9278b7 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -101,14 +101,15 @@ function create_raspap_directories() { cat /etc/dhcpcd.conf | sudo tee -a /etc/raspap/networking/defaults sudo chown -R $raspap_user:$raspap_user "$raspap_dir" || install_error "Unable to change file ownership for '$raspap_dir'" - - } # Generate logging enable/disable files for hostapd function create_logging_scripts() { - sudo mkdir /etc/raspap/hostapd - sudo mv /var/www/html/installers/*log.sh /etc/raspap/hostapd + install_log "Creating logging scripts" + sudo mkdir $raspap_dir/hostapd || install_error "Unable to create directory '$raspap_dir/hostapd'" + + # Move existing shell scripts + sudo mv $webroot_dir/installers/*log.sh $raspap_dir/hostapd || install_error "Unable to move logging scripts" } # Fetches latest files from github to webroot @@ -268,10 +269,10 @@ function install_raspap() { install_dependencies enable_php_lighttpd create_raspap_directories - create_logging_scripts check_for_old_configs download_latest_files change_file_ownership + create_logging_scripts move_config_file default_configuration patch_system_files