mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Fix: /etc/iptables/ dir absent on Raspbian
This commit is contained in:
parent
125c203884
commit
63dc8442ba
@ -281,8 +281,8 @@ function default_configuration() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Enabling persistent IP tables rules"
|
echo "Enabling persistent IP tables rules"
|
||||||
if [ ! -f "/etc/iptables/iptables.rules" ]; then
|
if [ ! -f "/etc/iptables.raspap.rules" ]; then
|
||||||
sudo cp "$webroot_dir/installers/iptables.rules" /etc/iptables || install_error "Unable to move iptables.rules to /etc/iptables"
|
sudo cp "$webroot_dir/installers/iptables.rules" /etc/iptables.raspap.rules || install_error "Unable to move iptables.rules"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f "/etc/systemd/system/iptables.service" ]; then
|
if [ ! -f "/etc/systemd/system/iptables.service" ]; then
|
||||||
|
@ -6,8 +6,8 @@ Before=sysinit.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/sbin/iptables-restore /etc/iptables/iptables.rules
|
ExecStart=/sbin/iptables-restore /etc/iptables.raspap.rules
|
||||||
ExecReload=/sbin/iptables-restore /etc/iptables/iptables.rules
|
ExecReload=/sbin/iptables-restore /etc/iptables.raspap.rules
|
||||||
ExecStop=/etc/iptables/flush-iptables.sh
|
ExecStop=/etc/iptables/flush-iptables.sh
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user