mirror of
				https://github.com/billz/raspap-webgui.git
				synced 2025-03-01 10:31:47 +00:00 
			
		
		
		
	Fix ownership of firewall directory
This commit is contained in:
		| @@ -11,10 +11,10 @@ function _install_feature_firewall() { | ||||
|     name="feature firewall" | ||||
|  | ||||
|     _install_log "Install $name" | ||||
|     _install_log " - copy configuration file" | ||||
| 	# create config dir | ||||
| 	sudo mkdir "/etc/raspap/networking/firewall" || _install_status 1 "Unable to create firewall config directory  | ||||
| 	sudo mkdir "$raspap_network/firewall" || _install_status 1 "Unable to create firewall config directory"  | ||||
|     # copy firewall configuration  | ||||
|     sudo cp "$webroot_dir/config/iptables_rules.json" "/etc/raspap/networking/" || _install_status 1 "Unable to install client configuration ($name)" | ||||
|     sudo cp "$webroot_dir/config/iptables_rules.json" "$raspap_network/firewall/" || _install_status 1 "Unable to copy iptables templates" | ||||
| 	sudo chown $raspap_user:$raspap_user -R "$raspap_network/firewall" || _install_status 1 "Unable to change ownership of firewall directory and files " | ||||
|     _install_status 0 | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user