Compare commits

...

3 Commits

Author SHA1 Message Date
MickLesk
6bb4b53907 PMG Post Install: detect gateway via dpkg or PMG service units 2026-04-12 21:13:25 +02:00
MickLesk
7c268219f4 PMG Post Install: Detect gateway via /etc/os-release when /etc/issue is generic 2026-04-12 20:56:45 +02:00
community-scripts-pr-app[bot]
2331f92c32 Update CHANGELOG.md (#13680)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-04-12 07:04:48 +00:00
2 changed files with 12 additions and 1 deletions

View File

@@ -444,6 +444,12 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
## 2026-04-12
### 🚀 Updated Scripts
- #### 🔧 Refactor
- MeTube: Allow pnpm build scripts to fix ERR_PNPM_IGNORED_BUILDS [@MickLesk](https://github.com/MickLesk) ([#13668](https://github.com/community-scripts/ProxmoxVE/pull/13668))
## 2026-04-11
### 🚀 Updated Scripts

View File

@@ -47,7 +47,12 @@ msg_error() {
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/api.func) 2>/dev/null || true
declare -f init_tool_telemetry &>/dev/null && init_tool_telemetry "post-pmg-install" "pve"
if ! grep -q "Proxmox Mail Gateway" /etc/issue 2>/dev/null; then
if ! grep -q "Proxmox Mail Gateway" /etc/issue 2>/dev/null &&
! grep -qE '^ID=(pmg|proxmox-mail-gateway)' /etc/os-release 2>/dev/null &&
! grep -qE '^PRETTY_NAME=.*Proxmox Mail Gateway' /etc/os-release 2>/dev/null &&
! dpkg -s proxmox-mailgateway-container >/dev/null 2>&1 &&
! dpkg -s proxmox-mailgateway >/dev/null 2>&1 &&
! systemctl list-unit-files 'pmg*.service' 2>/dev/null | grep -q '^pmg.*\.service'; then
msg_error "This script is only intended for Proxmox Mail Gateway"
exit 232
fi