Fix scripts
This commit is contained in:
@@ -4,4 +4,4 @@ echo "Installing Git..."
|
||||
apk add -u git
|
||||
|
||||
echo "Installing py-natpmp"
|
||||
git clone https://github.com/yimingliu/py-natpmp.git
|
||||
git clone https://github.com/yimingliu/py-natpmp.git /py-natpmp
|
||||
|
||||
@@ -9,4 +9,4 @@ gateway=$(ip -o -4 route show to default | awk '{print $3}')
|
||||
echo "Gateway: ${gateway}"
|
||||
|
||||
echo "Adding route to Wireguard Server via Default Gateway"
|
||||
ip -4 route add ${wgserver%:*} via ${gateway} dev eth0
|
||||
ip route add ${wgserver%:*}/32 via ${gateway} dev eth0
|
||||
|
||||
@@ -2,3 +2,5 @@
|
||||
|
||||
chmod +x /bin/set_port.sh
|
||||
(crontab -l ; echo "* * * * * /bin/set_port.sh") | sort - | uniq - | crontab -
|
||||
|
||||
crond
|
||||
|
||||
Reference in New Issue
Block a user