Skip to content

Commit 150f0ee

Browse files
authored
npm: add Debian version check to update script (#8901)
1 parent b5cf702 commit 150f0ee

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ct/nginxproxymanager.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ function update_script() {
2828
exit
2929
fi
3030

31+
if [[ $(grep -E '^VERSION_ID=' /etc/os-release) == *"12"* ]]; then
32+
msg_error "Wrong Debian version detected!"
33+
msg_error "Please create a snapshot first. You must upgrade your LXC to Debian Trixie before updating. Visit: https://github.com/community-scripts/ProxmoxVE/discussions/7489"
34+
exit
35+
fi
36+
3137
if command -v node &>/dev/null; then
3238
CURRENT_NODE_VERSION=$(node --version | cut -d'v' -f2 | cut -d'.' -f1)
3339
if [[ "$CURRENT_NODE_VERSION" != "22" ]]; then
@@ -144,7 +150,7 @@ EOF
144150
cd /app
145151
$STD yarn install --network-timeout 600000
146152
msg_ok "Initialized Backend"
147-
153+
148154
msg_info "Updating Certbot"
149155
[ -f /etc/apt/trusted.gpg.d/openresty-archive-keyring.gpg ] && rm -f /etc/apt/trusted.gpg.d/openresty-archive-keyring.gpg
150156
[ -f /etc/apt/sources.list.d/openresty.list ] && rm -f /etc/apt/sources.list.d/openresty.list

0 commit comments

Comments
 (0)