mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-28 23:41:37 +00:00
16 lines
308 B
Bash
Executable File
16 lines
308 B
Bash
Executable File
#!/bin/bash
|
|
|
|
apt -y update
|
|
|
|
while [ true ]; do
|
|
if [ ! -f /home/pivpn/ovpns/mynode_vpn.ovpn ]; then
|
|
/usr/bin/mynode_setup_vpn.sh
|
|
|
|
mkdir -p /home/pivpn/ovpns
|
|
pivpn add -n mynode_vpn -p bolt -d 3650
|
|
fi
|
|
|
|
systemctl enable openvpn
|
|
systemctl start openvpn
|
|
sleep 365d
|
|
done |