diff --git a/ct/nginxproxymanager.sh b/ct/nginxproxymanager.sh index 3a63fdfa0..940666606 100644 --- a/ct/nginxproxymanager.sh +++ b/ct/nginxproxymanager.sh @@ -28,6 +28,7 @@ function update_script() { exit fi + if command -v node &>/dev/null; then CURRENT_NODE_VERSION=$(node --version | cut -d'v' -f2 | cut -d'.' -f1) if [[ "$CURRENT_NODE_VERSION" != "22" ]]; then @@ -47,7 +48,7 @@ function update_script() { msg_info "Migrating from packaged OpenResty to source" rm -f /etc/apt/trusted.gpg.d/openresty-archive-keyring.gpg /etc/apt/trusted.gpg.d/openresty.gpg rm -f /etc/apt/sources.list.d/openresty.list /etc/apt/sources.list.d/openresty.sources - $STD apt purge -y openresty + $STD apt remove -y openresty $STD apt autoremove -y rm -f ~/.openresty msg_ok "Migrated from packaged OpenResty to source"