Fix bug input confirm install podkop

This commit is contained in:
CodeRoK7
2025-02-25 22:46:03 +05:00
committed by GitHub
parent a60d35cbd2
commit 6b46020866

View File

@@ -239,10 +239,11 @@ if ! uci show firewall | grep -q "@forwarding.*name='${ZONE_NAME}'"; then
fi fi
if [ -f "/etc/init.d/podkop" ]; then if [ -f "/etc/init.d/podkop" ]; then
path_podkop_config="/etc/config/podkop" path_podkop_config="/etc/config/podkop"
path_podkop_config_backup="/root/podkop" path_podkop_config_backup="/root/podkop"
URL="https://raw.githubusercontent.com/CodeRoK7/RouterichAX3000_configs/refs/heads/main" URL="https://raw.githubusercontent.com/CodeRoK7/RouterichAX3000_configs/refs/heads/main"
printf "Podkop installed. Reconfigured on AWG WARP? (y/n): \n" printf "Podkop installed. Reconfigured on AWG WARP? (y/n): \n"
is_reconfig_podkop="y"
read is_reconfig_podkop read is_reconfig_podkop
if [ "$is_reconfig_podkop" = "y" ] || [ "$is_reconfig_podkop" = "Y" ]; then if [ "$is_reconfig_podkop" = "y" ] || [ "$is_reconfig_podkop" = "Y" ]; then
cp -f "$path_podkop_config" "$path_podkop_config_backup" cp -f "$path_podkop_config" "$path_podkop_config_backup"
@@ -254,7 +255,7 @@ if [ -f "/etc/init.d/podkop" ]; then
fi fi
else else
printf "\033[32;1mInstall and configure PODKOP (a tool for point routing of traffic)?? (y/n): \033[0m\n" printf "\033[32;1mInstall and configure PODKOP (a tool for point routing of traffic)?? (y/n): \033[0m\n"
read -r -t 1 is_install_podkop="y"
read is_install_podkop read is_install_podkop
if [ "$is_install_podkop" = "y" ] || [ "$is_install_podkop" = "Y" ]; then if [ "$is_install_podkop" = "y" ] || [ "$is_install_podkop" = "Y" ]; then