2 Commits

Author SHA1 Message Date
ecb95ab194 wireguard clone
All checks were successful
continuous-integration/drone/push Build is passing
2025-03-04 12:11:44 +01:00
cdfd9df079 vpn install dirs and files 2025-03-04 12:11:25 +01:00
2 changed files with 10 additions and 1 deletions

View File

@@ -749,7 +749,7 @@ execute_task() {
VPN_PROXY_REPO="wireguard-proxy-client";
if [ ! -d "/tmp/$VPN_PROXY_REPO" ]; then
git clone $REPO /tmp/$VPN_PROXY_REPO >/dev/null
git clone https://git.format.hu/safebox/$VPN_PROXY_REPO.git /tmp/$VPN_PROXY_REPO >/dev/null
else
cd /tmp/$VPN_PROXY_REPO
git pull >/dev/null

View File

@@ -165,8 +165,17 @@ if [[ $FIRST_INSTALL == "true" ]]; then
elif [ "$FIRST_INSTALL" == "vpn" ]; then
INIT_SERVICE_PATH=/etc/user/config/services
AUTO_START_SERVICES="/etc/system/data/"
get_vpn_key
$SERVICE_EXEC vpn-proxy start
echo "$INIT_SERVICE_PATH/vpn-proxy.json" >>$AUTO_START_SERVICES/.init_services
echo "$INIT_SERVICE_PATH/firewall-vpn-smarthost-loadbalancer" >>$AUTO_START_SERVICES/.init_services
echo "$INIT_SERVICE_PATH/firewall-vpn-proxy-postrouting" >>$AUTO_START_SERVICES/.init_services
echo "$INIT_SERVICE_PATH/firewall-vpn-proxy-prerouting" >>$AUTO_START_SERVICES/.init_services
exit;
else