Skip to content

Commit

Permalink
qzeleza#234 ipset.kvas должен очищаться централизованно
Browse files Browse the repository at this point in the history
  • Loading branch information
AltGrF13 authored and AltGrF13 committed Dec 20, 2024
1 parent 391ce71 commit 13523b9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions opt/bin/main/setup
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ rm_previous_version_files(){
rm_file /opt/etc/ndm/iflayerchanged.d/100-kvas-vpn
rm_file /opt/etc/ndm/iflayerchanged.d/kvas-ips-reset
rm_file /opt/etc/cron.5mins/check_vpn
rm_file /opt/etc/cron.5mins/ipset.kvas
rm_dir /opt/etc/.kvas
}

Expand Down Expand Up @@ -444,8 +445,6 @@ cmd_install(){
mkdir -p "${KVAS_BACKUP_PATH}"
cat /dev/null > "${INSTALL_LOG}"

# ln -sf /opt/apps/kvas/bin/main/ipset /opt/etc/cron.5mins/ipset.kvas

[ -d "/opt/etc/ndm/iflayerchanged.d" ] || mkdir -p /opt/etc/ndm/iflayerchanged.d
hook_dir=$(get_hook_dir); home_dir=/opt/apps/kvas
ln -sf "${home_dir}/etc/ndm/${hook_dir}/100-kvas-vpn" "/opt/etc/ndm/${hook_dir}/100-kvas-vpn"
Expand Down Expand Up @@ -560,9 +559,6 @@ cmd_install(){
# fi
fi

# Удаляем если есть от старых версий
[ -f /opt/etc/cron.5mins/ipset.kvas ] && rm -f /opt/etc/cron.5mins/ipset.kvas

# Подключаем библиотеку keen_api
#source /opt/apps/kvas/bin/libs/keen_api
# Устанавливаем DNS роутера и порт по умолчанию
Expand Down

0 comments on commit 13523b9

Please sign in to comment.