mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-06-09 20:58:10 +01:00
@@ -28,6 +28,7 @@ function update_script() {
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if command -v node &>/dev/null; then
|
if command -v node &>/dev/null; then
|
||||||
CURRENT_NODE_VERSION=$(node --version | cut -d'v' -f2 | cut -d'.' -f1)
|
CURRENT_NODE_VERSION=$(node --version | cut -d'v' -f2 | cut -d'.' -f1)
|
||||||
if [[ "$CURRENT_NODE_VERSION" != "22" ]]; then
|
if [[ "$CURRENT_NODE_VERSION" != "22" ]]; then
|
||||||
@@ -47,7 +48,7 @@ function update_script() {
|
|||||||
msg_info "Migrating from packaged OpenResty to source"
|
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/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
|
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
|
$STD apt autoremove -y
|
||||||
rm -f ~/.openresty
|
rm -f ~/.openresty
|
||||||
msg_ok "Migrated from packaged OpenResty to source"
|
msg_ok "Migrated from packaged OpenResty to source"
|
||||||
|
|||||||
Reference in New Issue
Block a user