zapret: Global use of dynamic variables

This commit is contained in:
remittor
2025-12-29 21:09:35 +03:00
parent 1d2d3c4b84
commit a3c256c31a
7 changed files with 120 additions and 57 deletions

View File

@@ -1,7 +1,9 @@
#!/bin/sh
# Copyright (c) 2024 remittor
. /opt/zapret/comfunc.sh
EXE_DIR=$(cd "$(dirname "$0")" 2>/dev/null || exit 1; pwd)
. $EXE_DIR/comfunc.sh
merge_cfg_with_def_values
@@ -12,5 +14,5 @@ CONFIGS_SYNC=0
if [ "$CONFIGS_SYNC" = "1" ]; then
# renew main config
/opt/zapret/sync_config.sh
$ZAPRET_BASE/sync_config.sh
fi