From d54683396e89902a8ccf41b54f30aeb4403d855d Mon Sep 17 00:00:00 2001
From: tteckster <tteckster@gmail.com>
Date: Sat, 4 Feb 2023 12:47:47 -0500
Subject: [PATCH] use PCT_OSTYPE instead of redefining OS (#1018)

---
 install/adguard-v5-install.sh              | 3 +--
 install/audiobookshelf-v5-install.sh       | 3 +--
 install/autobrr-v5-install.sh              | 3 +--
 install/blocky-v5-install.sh               | 3 +--
 install/casaos-v5-install.sh               | 3 +--
 install/changedetection-v5-install.sh      | 3 +--
 install/cronicle-v5-install.sh             | 3 +--
 install/daemonsync-v5-install.sh           | 3 +--
 install/dashy-v5-install.sh                | 3 +--
 install/debian-v5-install.sh               | 3 +--
 install/deconz-v5-install.sh               | 3 +--
 install/deluge-v5-install.sh               | 3 +--
 install/docker-v5-install.sh               | 3 +--
 install/emby-v5-install.sh                 | 3 +--
 install/emqx-v5-install.sh                 | 3 +--
 install/esphome-v5-install.sh              | 3 +--
 install/grafana-v5-install.sh              | 3 +--
 install/grocy-v5-install.sh                | 3 +--
 install/heimdalldashboard-v5-install.sh    | 3 +--
 install/homeassistant-core-v5-install.sh   | 3 +--
 install/homeassistant-v5-install.sh        | 3 +--
 install/homebridge-v5-install.sh           | 3 +--
 install/homepage-v5-install.sh             | 3 +--
 install/homer-v5-install.sh                | 3 +--
 install/hyperion-v5-install.sh             | 3 +--
 install/influxdb-v5-install.sh             | 3 +--
 install/iobroker-v5-install.sh             | 3 +--
 install/jellyfin-v5-install.sh             | 3 +--
 install/k0s-v5-install.sh                  | 3 +--
 install/kavita-v5-install.sh               | 3 +--
 install/keycloak-v5-install.sh             | 3 +--
 install/lidarr-v5-install.sh               | 3 +--
 install/magicmirror-v5-install.sh          | 5 ++---
 install/mariadb-v5-install.sh              | 3 +--
 install/meshcentral-v5-install.sh          | 3 +--
 install/motioneye-v5-install.sh            | 3 +--
 install/mqtt-v5-install.sh                 | 3 +--
 install/n8n-v5-install.sh                  | 3 +--
 install/navidrome-v5-install.sh            | 3 +--
 install/nextcloudpi-v5-install.sh          | 3 +--
 install/nginxproxymanager-v5-install.sh    | 3 +--
 install/nocodb-v5-install.sh               | 3 +--
 install/node-red-v5-install.sh             | 3 +--
 install/omada-v5-install.sh                | 3 +--
 install/omv-v5-install.sh                  | 3 +--
 install/openhab-v5-install.sh              | 3 +--
 install/paperless-ngx-v5-install.sh        | 5 ++---
 install/photoprism-v5-install.sh           | 3 +--
 install/pihole-v5-install.sh               | 3 +--
 install/plex-v5-install.sh                 | 3 +--
 install/podman-homeassistant-v5-install.sh | 3 +--
 install/podman-v5-install.sh               | 3 +--
 install/postgresql-v5-install.sh           | 3 +--
 install/prometheus-v5-install.sh           | 3 +--
 install/prowlarr-v5-install.sh             | 3 +--
 install/radarr-v5-install.sh               | 3 +--
 install/readarr-v5-install.sh              | 3 +--
 install/sabnzbd-v5-install.sh              | 3 +--
 install/scrypted-v5-install.sh             | 3 +--
 install/shinobi-v5-install.sh              | 3 +--
 install/sonarr-v5-install.sh               | 3 +--
 install/syncthing-v5-install.sh            | 3 +--
 install/tdarr-v5-install.sh                | 3 +--
 install/technitiumdns-v5-install.sh        | 3 +--
 install/transmission-v5-install.sh         | 3 +--
 install/trilium-v5-install.sh              | 3 +--
 install/ubuntu-v5-install.sh               | 3 +--
 install/umbrel-v5-install.sh               | 3 +--
 install/unifi-v5-install.sh                | 3 +--
 install/uptimekuma-v5-install.sh           | 3 +--
 install/vaultwarden-v5-install.sh          | 3 +--
 install/whisparr-v5-install.sh             | 3 +--
 install/whoogle-v5-install.sh              | 3 +--
 install/wikijs-v5-install.sh               | 3 +--
 install/wireguard-v5-install.sh            | 3 +--
 install/yunohost-v5-install.sh             | 3 +--
 install/zigbee2mqtt-v5-install.sh          | 3 +--
 install/zwave-js-ui-v5-install.sh          | 3 +--
 misc/update-lxcs.sh                        | 2 +-
 79 files changed, 81 insertions(+), 159 deletions(-)

diff --git a/install/adguard-v5-install.sh b/install/adguard-v5-install.sh
index 73cb6abae..927412d41 100644
--- a/install/adguard-v5-install.sh
+++ b/install/adguard-v5-install.sh
@@ -95,8 +95,7 @@ msg_ok "Installed AdGuard Home"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/audiobookshelf-v5-install.sh b/install/audiobookshelf-v5-install.sh
index 3fbd4fc56..c5ea736ae 100644
--- a/install/audiobookshelf-v5-install.sh
+++ b/install/audiobookshelf-v5-install.sh
@@ -93,8 +93,7 @@ msg_ok "Installed audiobookshelf"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/autobrr-v5-install.sh b/install/autobrr-v5-install.sh
index 98e9e22f3..61b2eb455 100644
--- a/install/autobrr-v5-install.sh
+++ b/install/autobrr-v5-install.sh
@@ -114,8 +114,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/blocky-v5-install.sh b/install/blocky-v5-install.sh
index 2f2fe7f04..51f1e601c 100644
--- a/install/blocky-v5-install.sh
+++ b/install/blocky-v5-install.sh
@@ -347,8 +347,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/casaos-v5-install.sh b/install/casaos-v5-install.sh
index 1b68b8b7a..4825c26f6 100644
--- a/install/casaos-v5-install.sh
+++ b/install/casaos-v5-install.sh
@@ -103,8 +103,7 @@ msg_ok "Installed CasaOS"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/changedetection-v5-install.sh b/install/changedetection-v5-install.sh
index 219298aca..fbe2e18d0 100644
--- a/install/changedetection-v5-install.sh
+++ b/install/changedetection-v5-install.sh
@@ -107,8 +107,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/cronicle-v5-install.sh b/install/cronicle-v5-install.sh
index 69a5d7987..fb845084d 100644
--- a/install/cronicle-v5-install.sh
+++ b/install/cronicle-v5-install.sh
@@ -113,8 +113,7 @@ msg_ok "Installed Cronicle Primary Server"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/daemonsync-v5-install.sh b/install/daemonsync-v5-install.sh
index a7ee8c291..ea43bc987 100644
--- a/install/daemonsync-v5-install.sh
+++ b/install/daemonsync-v5-install.sh
@@ -92,8 +92,7 @@ msg_ok "Installed Daemon Sync Server"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/dashy-v5-install.sh b/install/dashy-v5-install.sh
index dd2eee906..e876c39fd 100644
--- a/install/dashy-v5-install.sh
+++ b/install/dashy-v5-install.sh
@@ -123,8 +123,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/debian-v5-install.sh b/install/debian-v5-install.sh
index 176fe03b3..d15f4d0cb 100644
--- a/install/debian-v5-install.sh
+++ b/install/debian-v5-install.sh
@@ -85,8 +85,7 @@ msg_ok "Installed Dependencies"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/deconz-v5-install.sh b/install/deconz-v5-install.sh
index 4a4cfe2b2..3e9973df2 100644
--- a/install/deconz-v5-install.sh
+++ b/install/deconz-v5-install.sh
@@ -116,8 +116,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/deluge-v5-install.sh b/install/deluge-v5-install.sh
index 618c18adf..1dc55656c 100644
--- a/install/deluge-v5-install.sh
+++ b/install/deluge-v5-install.sh
@@ -130,8 +130,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/docker-v5-install.sh b/install/docker-v5-install.sh
index 1a79204cf..5eed93090 100644
--- a/install/docker-v5-install.sh
+++ b/install/docker-v5-install.sh
@@ -147,8 +147,7 @@ fi
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/emby-v5-install.sh b/install/emby-v5-install.sh
index caed417c3..c23deef04 100644
--- a/install/emby-v5-install.sh
+++ b/install/emby-v5-install.sh
@@ -106,8 +106,7 @@ msg_ok "Installed Emby"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/emqx-v5-install.sh b/install/emqx-v5-install.sh
index 5067c5155..5a4cab700 100644
--- a/install/emqx-v5-install.sh
+++ b/install/emqx-v5-install.sh
@@ -91,8 +91,7 @@ msg_ok "Installed EMQX"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/esphome-v5-install.sh b/install/esphome-v5-install.sh
index e899e86a5..003663886 100644
--- a/install/esphome-v5-install.sh
+++ b/install/esphome-v5-install.sh
@@ -112,8 +112,7 @@ msg_ok "Installed ESPHome Dashboard"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/grafana-v5-install.sh b/install/grafana-v5-install.sh
index 87f02d1b5..3827d1b04 100644
--- a/install/grafana-v5-install.sh
+++ b/install/grafana-v5-install.sh
@@ -99,8 +99,7 @@ msg_ok "Installed Grafana"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/grocy-v5-install.sh b/install/grocy-v5-install.sh
index b0945f6f0..344ea7ce4 100644
--- a/install/grocy-v5-install.sh
+++ b/install/grocy-v5-install.sh
@@ -129,8 +129,7 @@ msg_ok "Installed grocy"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/heimdalldashboard-v5-install.sh b/install/heimdalldashboard-v5-install.sh
index 04bde39e9..351df94b6 100644
--- a/install/heimdalldashboard-v5-install.sh
+++ b/install/heimdalldashboard-v5-install.sh
@@ -123,8 +123,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/homeassistant-core-v5-install.sh b/install/homeassistant-core-v5-install.sh
index c4d90f2b4..14c6d0e6b 100644
--- a/install/homeassistant-core-v5-install.sh
+++ b/install/homeassistant-core-v5-install.sh
@@ -165,8 +165,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/homeassistant-v5-install.sh b/install/homeassistant-v5-install.sh
index 47e8a5f19..e1213501b 100644
--- a/install/homeassistant-v5-install.sh
+++ b/install/homeassistant-v5-install.sh
@@ -150,8 +150,7 @@ msg_ok "Installed Home Assistant $CORE_LATEST_VERSION"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/homebridge-v5-install.sh b/install/homebridge-v5-install.sh
index 3ca4c619b..a966c54b9 100644
--- a/install/homebridge-v5-install.sh
+++ b/install/homebridge-v5-install.sh
@@ -102,8 +102,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/homepage-v5-install.sh b/install/homepage-v5-install.sh
index e7564d296..2cd61caa5 100644
--- a/install/homepage-v5-install.sh
+++ b/install/homepage-v5-install.sh
@@ -122,8 +122,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/homer-v5-install.sh b/install/homer-v5-install.sh
index 1bea03130..5c0358ce0 100644
--- a/install/homer-v5-install.sh
+++ b/install/homer-v5-install.sh
@@ -111,8 +111,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/hyperion-v5-install.sh b/install/hyperion-v5-install.sh
index 5acf9f932..589297a03 100644
--- a/install/hyperion-v5-install.sh
+++ b/install/hyperion-v5-install.sh
@@ -96,8 +96,7 @@ msg_ok "Installed Hyperion"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/influxdb-v5-install.sh b/install/influxdb-v5-install.sh
index 85a9ec8de..f623b20d1 100644
--- a/install/influxdb-v5-install.sh
+++ b/install/influxdb-v5-install.sh
@@ -125,8 +125,7 @@ fi
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/iobroker-v5-install.sh b/install/iobroker-v5-install.sh
index c4539140a..0c9499cf1 100644
--- a/install/iobroker-v5-install.sh
+++ b/install/iobroker-v5-install.sh
@@ -90,8 +90,7 @@ msg_ok "Installed ioBroker"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/jellyfin-v5-install.sh b/install/jellyfin-v5-install.sh
index 6da83f157..e8f0f73b1 100644
--- a/install/jellyfin-v5-install.sh
+++ b/install/jellyfin-v5-install.sh
@@ -130,8 +130,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/k0s-v5-install.sh b/install/k0s-v5-install.sh
index 315983d15..c9adae82b 100644
--- a/install/k0s-v5-install.sh
+++ b/install/k0s-v5-install.sh
@@ -106,8 +106,7 @@ fi
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/kavita-v5-install.sh b/install/kavita-v5-install.sh
index f197b02b7..0b5b6711e 100644
--- a/install/kavita-v5-install.sh
+++ b/install/kavita-v5-install.sh
@@ -112,8 +112,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/keycloak-v5-install.sh b/install/keycloak-v5-install.sh
index 3f57e98c7..194071872 100644
--- a/install/keycloak-v5-install.sh
+++ b/install/keycloak-v5-install.sh
@@ -109,8 +109,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/lidarr-v5-install.sh b/install/lidarr-v5-install.sh
index d6808aff9..4eaaa2e8c 100644
--- a/install/lidarr-v5-install.sh
+++ b/install/lidarr-v5-install.sh
@@ -116,8 +116,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/magicmirror-v5-install.sh b/install/magicmirror-v5-install.sh
index 62e0377c7..fa57fd6ec 100644
--- a/install/magicmirror-v5-install.sh
+++ b/install/magicmirror-v5-install.sh
@@ -210,9 +210,8 @@ msg_ok "Created Service"
 
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
-        msg_info "Customizing Container"
-        OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+  msg_info "Customizing Container"
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
         touch ~/.hushlogin
         GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
         mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/mariadb-v5-install.sh b/install/mariadb-v5-install.sh
index f00046a7d..37829a433 100644
--- a/install/mariadb-v5-install.sh
+++ b/install/mariadb-v5-install.sh
@@ -107,8 +107,7 @@ fi
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/meshcentral-v5-install.sh b/install/meshcentral-v5-install.sh
index 458c458e3..d172d37e2 100644
--- a/install/meshcentral-v5-install.sh
+++ b/install/meshcentral-v5-install.sh
@@ -101,8 +101,7 @@ msg_ok "Installed MeshCentral"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/motioneye-v5-install.sh b/install/motioneye-v5-install.sh
index e93a6a46d..f0d91b0e7 100644
--- a/install/motioneye-v5-install.sh
+++ b/install/motioneye-v5-install.sh
@@ -120,8 +120,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/mqtt-v5-install.sh b/install/mqtt-v5-install.sh
index 08cd9055d..4b2c70471 100644
--- a/install/mqtt-v5-install.sh
+++ b/install/mqtt-v5-install.sh
@@ -97,8 +97,7 @@ msg_ok "Installed Mosquitto MQTT Broker"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/n8n-v5-install.sh b/install/n8n-v5-install.sh
index 842072765..e11671e6c 100644
--- a/install/n8n-v5-install.sh
+++ b/install/n8n-v5-install.sh
@@ -112,8 +112,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/navidrome-v5-install.sh b/install/navidrome-v5-install.sh
index 5f0b0f454..5f3804f0d 100644
--- a/install/navidrome-v5-install.sh
+++ b/install/navidrome-v5-install.sh
@@ -140,8 +140,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/nextcloudpi-v5-install.sh b/install/nextcloudpi-v5-install.sh
index 47ce30607..0d01c01e5 100644
--- a/install/nextcloudpi-v5-install.sh
+++ b/install/nextcloudpi-v5-install.sh
@@ -92,8 +92,7 @@ msg_ok "Installed NextCloudPi"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/nginxproxymanager-v5-install.sh b/install/nginxproxymanager-v5-install.sh
index a128a7292..d585a6602 100644
--- a/install/nginxproxymanager-v5-install.sh
+++ b/install/nginxproxymanager-v5-install.sh
@@ -244,8 +244,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/nocodb-v5-install.sh b/install/nocodb-v5-install.sh
index 6f92515c3..f56b68c50 100644
--- a/install/nocodb-v5-install.sh
+++ b/install/nocodb-v5-install.sh
@@ -119,8 +119,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/node-red-v5-install.sh b/install/node-red-v5-install.sh
index f114216b9..026861635 100644
--- a/install/node-red-v5-install.sh
+++ b/install/node-red-v5-install.sh
@@ -122,8 +122,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/omada-v5-install.sh b/install/omada-v5-install.sh
index 347eec828..26428b02b 100644
--- a/install/omada-v5-install.sh
+++ b/install/omada-v5-install.sh
@@ -96,8 +96,7 @@ msg_ok "Installed Omada Controller"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/omv-v5-install.sh b/install/omv-v5-install.sh
index 3a72d3852..d5b06587f 100644
--- a/install/omv-v5-install.sh
+++ b/install/omv-v5-install.sh
@@ -108,8 +108,7 @@ msg_ok "Installed OpenMediaVault"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/openhab-v5-install.sh b/install/openhab-v5-install.sh
index cf21a7334..b57f9edf6 100644
--- a/install/openhab-v5-install.sh
+++ b/install/openhab-v5-install.sh
@@ -107,8 +107,7 @@ msg_ok "Installed openHAB"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/paperless-ngx-v5-install.sh b/install/paperless-ngx-v5-install.sh
index e60e617ac..1d09ae897 100644
--- a/install/paperless-ngx-v5-install.sh
+++ b/install/paperless-ngx-v5-install.sh
@@ -260,9 +260,8 @@ msg_ok "Created Services"
 
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
-	msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+  msg_info "Customizing Container"
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
 	touch ~/.hushlogin
 	GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
 	mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/photoprism-v5-install.sh b/install/photoprism-v5-install.sh
index c61d4dec6..66b62c0bf 100644
--- a/install/photoprism-v5-install.sh
+++ b/install/photoprism-v5-install.sh
@@ -180,8 +180,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/pihole-v5-install.sh b/install/pihole-v5-install.sh
index 216374025..848d9cb1e 100644
--- a/install/pihole-v5-install.sh
+++ b/install/pihole-v5-install.sh
@@ -113,8 +113,7 @@ msg_ok "Installed Pi-hole"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/plex-v5-install.sh b/install/plex-v5-install.sh
index 2fa7638d8..bbd76a968 100644
--- a/install/plex-v5-install.sh
+++ b/install/plex-v5-install.sh
@@ -110,8 +110,7 @@ msg_ok "Installed Plex Media Server"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/podman-homeassistant-v5-install.sh b/install/podman-homeassistant-v5-install.sh
index b54fdd82d..5a93e042b 100644
--- a/install/podman-homeassistant-v5-install.sh
+++ b/install/podman-homeassistant-v5-install.sh
@@ -112,8 +112,7 @@ msg_ok "Installed Home Assistant"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/podman-v5-install.sh b/install/podman-v5-install.sh
index 952fa9c3a..7e75b6f92 100644
--- a/install/podman-v5-install.sh
+++ b/install/podman-v5-install.sh
@@ -91,8 +91,7 @@ msg_ok "Installed Podman"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/postgresql-v5-install.sh b/install/postgresql-v5-install.sh
index 897fb1c16..8877f2e42 100644
--- a/install/postgresql-v5-install.sh
+++ b/install/postgresql-v5-install.sh
@@ -214,8 +214,7 @@ fi
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/prometheus-v5-install.sh b/install/prometheus-v5-install.sh
index c3ebcdfff..357a2229e 100644
--- a/install/prometheus-v5-install.sh
+++ b/install/prometheus-v5-install.sh
@@ -121,8 +121,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/prowlarr-v5-install.sh b/install/prowlarr-v5-install.sh
index dc9fd9184..7ca5434bb 100644
--- a/install/prowlarr-v5-install.sh
+++ b/install/prowlarr-v5-install.sh
@@ -114,8 +114,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/radarr-v5-install.sh b/install/radarr-v5-install.sh
index 3e2b2c514..85a47c29b 100644
--- a/install/radarr-v5-install.sh
+++ b/install/radarr-v5-install.sh
@@ -114,8 +114,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/readarr-v5-install.sh b/install/readarr-v5-install.sh
index 5df38948b..6554d3779 100644
--- a/install/readarr-v5-install.sh
+++ b/install/readarr-v5-install.sh
@@ -114,8 +114,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/sabnzbd-v5-install.sh b/install/sabnzbd-v5-install.sh
index 15384772c..ccf749093 100644
--- a/install/sabnzbd-v5-install.sh
+++ b/install/sabnzbd-v5-install.sh
@@ -119,8 +119,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/scrypted-v5-install.sh b/install/scrypted-v5-install.sh
index b557a38fd..fd84cc49a 100644
--- a/install/scrypted-v5-install.sh
+++ b/install/scrypted-v5-install.sh
@@ -179,8 +179,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/shinobi-v5-install.sh b/install/shinobi-v5-install.sh
index f36b68c53..76d2b9b0c 100644
--- a/install/shinobi-v5-install.sh
+++ b/install/shinobi-v5-install.sh
@@ -148,8 +148,7 @@ msg_ok "Installed Shinobi"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/sonarr-v5-install.sh b/install/sonarr-v5-install.sh
index 697514d76..96dca52dc 100644
--- a/install/sonarr-v5-install.sh
+++ b/install/sonarr-v5-install.sh
@@ -95,8 +95,7 @@ msg_ok "Installed Sonarr"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/syncthing-v5-install.sh b/install/syncthing-v5-install.sh
index b7f63b24c..8e6812b7a 100644
--- a/install/syncthing-v5-install.sh
+++ b/install/syncthing-v5-install.sh
@@ -98,8 +98,7 @@ msg_ok "Installed Syncthing"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/tdarr-v5-install.sh b/install/tdarr-v5-install.sh
index 8e6f50f00..e13a2f942 100644
--- a/install/tdarr-v5-install.sh
+++ b/install/tdarr-v5-install.sh
@@ -141,8 +141,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/technitiumdns-v5-install.sh b/install/technitiumdns-v5-install.sh
index fb0520879..0ad64b31a 100644
--- a/install/technitiumdns-v5-install.sh
+++ b/install/technitiumdns-v5-install.sh
@@ -93,8 +93,7 @@ msg_ok "Installed Technitium DNS"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/transmission-v5-install.sh b/install/transmission-v5-install.sh
index 2e73fc176..f56dff915 100644
--- a/install/transmission-v5-install.sh
+++ b/install/transmission-v5-install.sh
@@ -93,8 +93,7 @@ msg_ok "Installed Transmission"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/trilium-v5-install.sh b/install/trilium-v5-install.sh
index 3d6f2598a..e93f13f10 100644
--- a/install/trilium-v5-install.sh
+++ b/install/trilium-v5-install.sh
@@ -115,8 +115,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/ubuntu-v5-install.sh b/install/ubuntu-v5-install.sh
index b48ba885a..539076f01 100644
--- a/install/ubuntu-v5-install.sh
+++ b/install/ubuntu-v5-install.sh
@@ -86,8 +86,7 @@ msg_ok "Installed Dependencies"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/umbrel-v5-install.sh b/install/umbrel-v5-install.sh
index b447635cb..ee5469cfe 100644
--- a/install/umbrel-v5-install.sh
+++ b/install/umbrel-v5-install.sh
@@ -104,8 +104,7 @@ msg_ok "Installed Umbrel"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/unifi-v5-install.sh b/install/unifi-v5-install.sh
index b75f3bba4..3f105891c 100644
--- a/install/unifi-v5-install.sh
+++ b/install/unifi-v5-install.sh
@@ -99,8 +99,7 @@ msg_ok "Installed UniFi Network Application"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/uptimekuma-v5-install.sh b/install/uptimekuma-v5-install.sh
index 9148e80ef..92f6b6ba0 100644
--- a/install/uptimekuma-v5-install.sh
+++ b/install/uptimekuma-v5-install.sh
@@ -119,8 +119,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/vaultwarden-v5-install.sh b/install/vaultwarden-v5-install.sh
index 6cc0f029e..ee7181ca0 100644
--- a/install/vaultwarden-v5-install.sh
+++ b/install/vaultwarden-v5-install.sh
@@ -176,8 +176,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/whisparr-v5-install.sh b/install/whisparr-v5-install.sh
index 2ffa248d8..ac18b9b6b 100644
--- a/install/whisparr-v5-install.sh
+++ b/install/whisparr-v5-install.sh
@@ -114,8 +114,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/whoogle-v5-install.sh b/install/whoogle-v5-install.sh
index e9d8f72d2..a4db211d1 100644
--- a/install/whoogle-v5-install.sh
+++ b/install/whoogle-v5-install.sh
@@ -108,8 +108,7 @@ msg_ok "Installed Whoogle"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/wikijs-v5-install.sh b/install/wikijs-v5-install.sh
index 5defd0dd0..916a57b37 100644
--- a/install/wikijs-v5-install.sh
+++ b/install/wikijs-v5-install.sh
@@ -136,8 +136,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/wireguard-v5-install.sh b/install/wireguard-v5-install.sh
index 6e5d84640..9c94cdc4f 100644
--- a/install/wireguard-v5-install.sh
+++ b/install/wireguard-v5-install.sh
@@ -108,8 +108,7 @@ msg_ok "Installed WireGuard"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/yunohost-v5-install.sh b/install/yunohost-v5-install.sh
index 769e07be7..803a1fa01 100644
--- a/install/yunohost-v5-install.sh
+++ b/install/yunohost-v5-install.sh
@@ -95,8 +95,7 @@ msg_ok "Installed YunoHost"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-  OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/zigbee2mqtt-v5-install.sh b/install/zigbee2mqtt-v5-install.sh
index 7f7780038..9161fbb4a 100644
--- a/install/zigbee2mqtt-v5-install.sh
+++ b/install/zigbee2mqtt-v5-install.sh
@@ -135,8 +135,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/install/zwave-js-ui-v5-install.sh b/install/zwave-js-ui-v5-install.sh
index 973ef4c25..eb90430d1 100644
--- a/install/zwave-js-ui-v5-install.sh
+++ b/install/zwave-js-ui-v5-install.sh
@@ -111,8 +111,7 @@ msg_ok "Created Service"
 echo "export TERM='xterm-256color'" >>/root/.bashrc
 if ! getent shadow root | grep -q "^root:[^\!*]"; then
   msg_info "Customizing Container"
-OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
-if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
+if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
   touch ~/.hushlogin
   GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
   mkdir -p $(dirname $GETTY_OVERRIDE)
diff --git a/misc/update-lxcs.sh b/misc/update-lxcs.sh
index e4542e096..0c19f0cab 100644
--- a/misc/update-lxcs.sh
+++ b/misc/update-lxcs.sh
@@ -40,7 +40,7 @@ function update_container() {
   os=`awk '/^ostype/' temp | cut -d' ' -f2`
   if [ "$os" == "alpine" ]; then
         pct exec $container -- ash -c "apk update && apk upgrade"
-  elif [ "$os" == "ubuntu" ] || [ "$os" == "debian" ] || [ "$os" == "devuan" ]; then
+  elif [ "$os" == "ubuntu" ] || [ "$PCT_OSTYPE" == "debian" ] || [ "$os" == "devuan" ]; then
         pct exec $container -- bash -c "apt-get update && apt-get -y upgrade"
   elif [ "$os" == "fedora" ] || [ "$os" == "rocky" ] || [ "$os" == "centos" ] || [ "$os" == "alma" ]; then
         pct exec $container -- bash -c "dnf -y update && dnf -y upgrade"