mirror of
https://github.com/remittor/zapret-openwrt.git
synced 2025-12-31 21:59:06 +03:00
Add many new scripts for manage service
This commit is contained in:
16
zapret/renew-cfg.sh
Executable file
16
zapret/renew-cfg.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
# Copyright (c) 2024 remittor
|
||||
|
||||
. /opt/zapret/comfunc.sh
|
||||
|
||||
merge_cfg_with_def_values
|
||||
|
||||
CONFIGS_SYNC=0
|
||||
|
||||
[ ! -f "$ZAPRET_CONFIG" ] && CONFIGS_SYNC=1
|
||||
[ "$1" = "sync" ] && CONFIGS_SYNC=1
|
||||
|
||||
if [ "$CONFIGS_SYNC" = "1" ]; then
|
||||
# renew main config
|
||||
/opt/zapret/sync_config.sh
|
||||
fi
|
||||
Reference in New Issue
Block a user