Merge branch 'main' of https://git.format.hu/safebox/framework-scheduler
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
gyurix
2025-03-19 08:55:03 +01:00

View File

@@ -4,7 +4,7 @@ SERVICE_EXEC=$2
FIRST_INSTALL=$3 FIRST_INSTALL=$3
GLOBAL_VERSION=$4 GLOBAL_VERSION=$4
edit_user_user_json() { edit_user_json() {
if [ ! -f /etc/user/config/user.json ]; then if [ ! -f /etc/user/config/user.json ]; then
install -m 664 -g 65534 /dev/null /etc/user/config/user.json install -m 664 -g 65534 /dev/null /etc/user/config/user.json
@@ -202,6 +202,7 @@ elif [ "$FIRST_INSTALL" == "vpn" ]; then
edit_user_json $LETSENCRYPT_MAIL $LETSENCRYPT_SERVERNAME edit_user_json $LETSENCRYPT_MAIL $LETSENCRYPT_SERVERNAME
$SERVICE_EXEC vpn-proxy stop force
$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/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-smarthost-loadbalancer" >>$AUTO_START_SERVICES/.init_services