fix some things

This commit is contained in:
CanbiZ 2025-05-21 14:38:32 +02:00
parent d0561b05a8
commit fcc33fb2b2
2 changed files with 32 additions and 47 deletions

View File

@ -20,15 +20,15 @@ color
catch_errors catch_errors
function update_script() { function update_script() {
header_info header_info
check_container_storage check_container_storage
check_container_resources check_container_resources
if [[ ! -f /etc/systemd/system/cloudflare-ddns.service ]]; then if [[ ! -f /etc/systemd/system/cloudflare-ddns.service ]]; then
msg_error "No ${APP} Installation Found!" msg_error "No ${APP} Installation Found!"
exit
fi
msg_error "There is no update function for ${APP}."
exit exit
fi
msg_error "There is no update function for ${APP}."
exit
} }
start start

View File

@ -13,21 +13,7 @@ setting_up_container
network_check network_check
update_os update_os
msg_info "Installing dependencies"
install_go install_go
msg_ok "Installed dependencies"
# msg_info "Installing Go"
# GO_VERSION=$(curl -s https://go.dev/VERSION?m=text | grep -m1 '^go')
# GO_TARBALL="${GO_VERSION}.linux-amd64.tar.gz"
# GO_URL="https://go.dev/dl/${GO_TARBALL}"
# INSTALL_DIR="/usr/bin"
# rm -rf "${INSTALL_DIR}/go"
# curl -LO "$GO_URL"
# tar -C "$INSTALL_DIR" -xzf "$GO_TARBALL"
# echo 'export PATH=$PATH:/usr/bin/go/bin' >>~/.bashrc
# source ~/.bashrc
# msg_ok "Installed Go"
msg_info "Configure Application" msg_info "Configure Application"
var_cf_api_token="default" var_cf_api_token="default"
@ -38,33 +24,33 @@ read -rp "Enter the domains separated with a comma (*.example.org,www.example.or
var_cf_proxied="false" var_cf_proxied="false"
while true; do while true; do
read -rp "Proxied? (y/n): " answer read -rp "Proxied? (y/n): " answer
case "$answer" in case "$answer" in
[Yy]*) [Yy]*)
var_cf_proxied="true" var_cf_proxied="true"
break break
;; ;;
[Nn]*) [Nn]*)
var_cf_proxied="false" var_cf_proxied="false"
break break
;; ;;
*) echo "Please answer y or n." ;; *) echo "Please answer y or n." ;;
esac esac
done done
var_cf_ip6_provider="none" var_cf_ip6_provider="none"
while true; do while true; do
read -rp "Enable IPv6 support? (y/n): " answer read -rp "Enable IPv6 support? (y/n): " answer
case "$answer" in case "$answer" in
[Yy]*) [Yy]*)
var_cf_ip6_provider="auto" var_cf_ip6_provider="auto"
break break
;; ;;
[Nn]*) [Nn]*)
var_cf_ip6_provider="none" var_cf_ip6_provider="none"
break break
;; ;;
*) echo "Please answer y or n." ;; *) echo "Please answer y or n." ;;
esac esac
done done
msg_ok "Configured Application" msg_ok "Configured Application"
@ -98,5 +84,4 @@ customize
msg_info "Cleaning up" msg_info "Cleaning up"
$STD apt-get -y autoremove $STD apt-get -y autoremove
$STD apt-get -y autoclean $STD apt-get -y autoclean
#rm -f "$GO_TARBALL"
msg_ok "Cleaned" msg_ok "Cleaned"