Compare commits
2 Commits
5a7c67c3f7
...
ecb95ab194
Author | SHA1 | Date | |
---|---|---|---|
ecb95ab194 | |||
cdfd9df079 |
@@ -749,7 +749,7 @@ execute_task() {
|
|||||||
|
|
||||||
VPN_PROXY_REPO="wireguard-proxy-client";
|
VPN_PROXY_REPO="wireguard-proxy-client";
|
||||||
if [ ! -d "/tmp/$VPN_PROXY_REPO" ]; then
|
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
|
else
|
||||||
cd /tmp/$VPN_PROXY_REPO
|
cd /tmp/$VPN_PROXY_REPO
|
||||||
git pull >/dev/null
|
git pull >/dev/null
|
||||||
|
@@ -165,8 +165,17 @@ if [[ $FIRST_INSTALL == "true" ]]; then
|
|||||||
|
|
||||||
elif [ "$FIRST_INSTALL" == "vpn" ]; then
|
elif [ "$FIRST_INSTALL" == "vpn" ]; then
|
||||||
|
|
||||||
|
INIT_SERVICE_PATH=/etc/user/config/services
|
||||||
|
AUTO_START_SERVICES="/etc/system/data/"
|
||||||
|
|
||||||
get_vpn_key
|
get_vpn_key
|
||||||
|
|
||||||
$SERVICE_EXEC vpn-proxy start
|
$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;
|
exit;
|
||||||
|
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user