Fix ownership of firewall directory

This commit is contained in:
Christian Zeitnitz 2021-07-19 17:47:38 +02:00
parent 3059dd1fb8
commit 5197df18e1

View file

@ -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
} }