mirror of
				https://github.com/billz/raspap-webgui.git
				synced 2025-03-01 10:31:47 +00:00 
			
		
		
		
	Fix for #225, (Credits to DrStacheWH)
Removed duplicated create_logging_scripts function. Signed-off-by: D9ping <D9ping@users.noreply.github.com>
This commit is contained in:
		| @@ -113,14 +113,12 @@ function create_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" | ||||
|     sudo mv "$webroot_dir/installers/"*log.sh "$raspap_dir/hostapd" || install_error "Unable to move logging scripts" | ||||
|     # Make enablelog.sh and disablelog.sh not writable by www-data group. | ||||
|     sudo chown -c root:"$raspap_user" "$raspap_dir/hostapd/"*log.sh || install_error "Unable change owner and/or group." | ||||
|     sudo chmod 750 "$raspap_dir/hostapd/"*log.sh || install_error "Unable to change file permissions." | ||||
| } | ||||
|  | ||||
| # 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 | ||||
| } | ||||
|  | ||||
| # Fetches latest files from github to webroot | ||||
| function download_latest_files() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user