mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-27 19:14:44 +00:00
Purge openresty (#14353)
This commit is contained in:
@@ -28,7 +28,6 @@ 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
|
||||||
@@ -48,7 +47,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 remove -y openresty
|
$STD apt purge -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