Fix: tee output w/ sudo

This commit is contained in:
billz 2020-03-20 13:49:06 +00:00
parent 176593b81f
commit 125c203884
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ function default_configuration() {
if [ ! -f $raspap_sysctl ]; then
echo "Enabling IP forwarding"
sudo touch $raspap_sysctl || install_error "Unable to create ${raspap_sysctl}"
sudo echo "net.ipv4.ip_forward = 1" >> $raspap_sysctl || install_error "Unable to append to ${raspap_sysctl}"
echo "net.ipv4.ip_forward = 1" | sudo tee -a $raspap_sysctl || install_error "Unable to append to ${raspap_sysctl}"
fi
echo "Enabling persistent IP tables rules"