mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 19:00:15 +00:00
Fix redirect text to sysctl config file
sudo echo hello > world doesn't work: sudo runs echo as root but the redirection is executed as standard user.
This commit is contained in:
parent
24b748f1bc
commit
14d9fc6a45
1 changed files with 1 additions and 1 deletions
|
@ -2196,7 +2196,7 @@ confNetwork(){
|
||||||
$SUDO sed -i '/net.ipv4.ip_forward=1/s/^#//g' /etc/sysctl.conf
|
$SUDO sed -i '/net.ipv4.ip_forward=1/s/^#//g' /etc/sysctl.conf
|
||||||
if [ "$pivpnenableipv6" == "1" ]; then
|
if [ "$pivpnenableipv6" == "1" ]; then
|
||||||
$SUDO sed -i '/net.ipv6.conf.all.forwarding=1/s/^#//g' /etc/sysctl.conf
|
$SUDO sed -i '/net.ipv6.conf.all.forwarding=1/s/^#//g' /etc/sysctl.conf
|
||||||
$SUDO echo "net.ipv6.conf.${IPv6dev}.accept_ra=2" > /etc/sysctl.d/99-pivpn.conf
|
echo "net.ipv6.conf.${IPv6dev}.accept_ra=2" | $SUDO tee /etc/sysctl.d/99-pivpn.conf > /dev/null
|
||||||
fi
|
fi
|
||||||
$SUDO sysctl -p > /dev/null
|
$SUDO sysctl -p > /dev/null
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue