Fix scripts

This commit is contained in:
Colin Hebert
2023-04-13 20:54:47 +10:00
parent 7944f0d3c1
commit ad27a30052
3 changed files with 4 additions and 2 deletions

View File

@@ -4,4 +4,4 @@ echo "Installing Git..."
apk add -u git apk add -u git
echo "Installing py-natpmp" echo "Installing py-natpmp"
git clone https://github.com/yimingliu/py-natpmp.git git clone https://github.com/yimingliu/py-natpmp.git /py-natpmp

View File

@@ -9,4 +9,4 @@ gateway=$(ip -o -4 route show to default | awk '{print $3}')
echo "Gateway: ${gateway}" echo "Gateway: ${gateway}"
echo "Adding route to Wireguard Server via Default 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

View File

@@ -2,3 +2,5 @@
chmod +x /bin/set_port.sh chmod +x /bin/set_port.sh
(crontab -l ; echo "* * * * * /bin/set_port.sh") | sort - | uniq - | crontab - (crontab -l ; echo "* * * * * /bin/set_port.sh") | sort - | uniq - | crontab -
crond