From 125c203884e6a8a53dfe005e39482384ffa42bb5 Mon Sep 17 00:00:00 2001 From: billz Date: Fri, 20 Mar 2020 13:49:06 +0000 Subject: [PATCH] Fix: tee output w/ sudo --- installers/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installers/common.sh b/installers/common.sh index 432ece4b..4cd29237 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -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"