1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00
This commit is contained in:
billz 2017-11-16 22:38:03 +00:00
parent 0c696e061f
commit 951228275c

View File

@ -101,14 +101,15 @@ function create_raspap_directories() {
cat /etc/dhcpcd.conf | sudo tee -a /etc/raspap/networking/defaults 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'" 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 # Generate logging enable/disable files for hostapd
function create_logging_scripts() { function create_logging_scripts() {
sudo mkdir /etc/raspap/hostapd install_log "Creating logging scripts"
sudo mv /var/www/html/installers/*log.sh /etc/raspap/hostapd 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 # Fetches latest files from github to webroot
@ -268,10 +269,10 @@ function install_raspap() {
install_dependencies install_dependencies
enable_php_lighttpd enable_php_lighttpd
create_raspap_directories create_raspap_directories
create_logging_scripts
check_for_old_configs check_for_old_configs
download_latest_files download_latest_files
change_file_ownership change_file_ownership
create_logging_scripts
move_config_file move_config_file
default_configuration default_configuration
patch_system_files patch_system_files