mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-25 00:50:29 +00:00
Fix ownership of firewall directory
This commit is contained in:
parent
3059dd1fb8
commit
5197df18e1
1 changed files with 3 additions and 3 deletions
|
@ -11,10 +11,10 @@ function _install_feature_firewall() {
|
||||||
name="feature firewall"
|
name="feature firewall"
|
||||||
|
|
||||||
_install_log "Install $name"
|
_install_log "Install $name"
|
||||||
_install_log " - copy configuration file"
|
|
||||||
# create config dir
|
# 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
|
# 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
|
_install_status 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue