Przeglądaj źródła

use PCT_OSTYPE instead of redefining OS (#1018)

tteckster 2 lat temu
rodzic
commit
d54683396e
79 zmienionych plików z 81 dodań i 159 usunięć
  1. 1 2
      install/adguard-v5-install.sh
  2. 1 2
      install/audiobookshelf-v5-install.sh
  3. 1 2
      install/autobrr-v5-install.sh
  4. 1 2
      install/blocky-v5-install.sh
  5. 1 2
      install/casaos-v5-install.sh
  6. 1 2
      install/changedetection-v5-install.sh
  7. 1 2
      install/cronicle-v5-install.sh
  8. 1 2
      install/daemonsync-v5-install.sh
  9. 1 2
      install/dashy-v5-install.sh
  10. 1 2
      install/debian-v5-install.sh
  11. 1 2
      install/deconz-v5-install.sh
  12. 1 2
      install/deluge-v5-install.sh
  13. 1 2
      install/docker-v5-install.sh
  14. 1 2
      install/emby-v5-install.sh
  15. 1 2
      install/emqx-v5-install.sh
  16. 1 2
      install/esphome-v5-install.sh
  17. 1 2
      install/grafana-v5-install.sh
  18. 1 2
      install/grocy-v5-install.sh
  19. 1 2
      install/heimdalldashboard-v5-install.sh
  20. 1 2
      install/homeassistant-core-v5-install.sh
  21. 1 2
      install/homeassistant-v5-install.sh
  22. 1 2
      install/homebridge-v5-install.sh
  23. 1 2
      install/homepage-v5-install.sh
  24. 1 2
      install/homer-v5-install.sh
  25. 1 2
      install/hyperion-v5-install.sh
  26. 1 2
      install/influxdb-v5-install.sh
  27. 1 2
      install/iobroker-v5-install.sh
  28. 1 2
      install/jellyfin-v5-install.sh
  29. 1 2
      install/k0s-v5-install.sh
  30. 1 2
      install/kavita-v5-install.sh
  31. 1 2
      install/keycloak-v5-install.sh
  32. 1 2
      install/lidarr-v5-install.sh
  33. 2 3
      install/magicmirror-v5-install.sh
  34. 1 2
      install/mariadb-v5-install.sh
  35. 1 2
      install/meshcentral-v5-install.sh
  36. 1 2
      install/motioneye-v5-install.sh
  37. 1 2
      install/mqtt-v5-install.sh
  38. 1 2
      install/n8n-v5-install.sh
  39. 1 2
      install/navidrome-v5-install.sh
  40. 1 2
      install/nextcloudpi-v5-install.sh
  41. 1 2
      install/nginxproxymanager-v5-install.sh
  42. 1 2
      install/nocodb-v5-install.sh
  43. 1 2
      install/node-red-v5-install.sh
  44. 1 2
      install/omada-v5-install.sh
  45. 1 2
      install/omv-v5-install.sh
  46. 1 2
      install/openhab-v5-install.sh
  47. 2 3
      install/paperless-ngx-v5-install.sh
  48. 1 2
      install/photoprism-v5-install.sh
  49. 1 2
      install/pihole-v5-install.sh
  50. 1 2
      install/plex-v5-install.sh
  51. 1 2
      install/podman-homeassistant-v5-install.sh
  52. 1 2
      install/podman-v5-install.sh
  53. 1 2
      install/postgresql-v5-install.sh
  54. 1 2
      install/prometheus-v5-install.sh
  55. 1 2
      install/prowlarr-v5-install.sh
  56. 1 2
      install/radarr-v5-install.sh
  57. 1 2
      install/readarr-v5-install.sh
  58. 1 2
      install/sabnzbd-v5-install.sh
  59. 1 2
      install/scrypted-v5-install.sh
  60. 1 2
      install/shinobi-v5-install.sh
  61. 1 2
      install/sonarr-v5-install.sh
  62. 1 2
      install/syncthing-v5-install.sh
  63. 1 2
      install/tdarr-v5-install.sh
  64. 1 2
      install/technitiumdns-v5-install.sh
  65. 1 2
      install/transmission-v5-install.sh
  66. 1 2
      install/trilium-v5-install.sh
  67. 1 2
      install/ubuntu-v5-install.sh
  68. 1 2
      install/umbrel-v5-install.sh
  69. 1 2
      install/unifi-v5-install.sh
  70. 1 2
      install/uptimekuma-v5-install.sh
  71. 1 2
      install/vaultwarden-v5-install.sh
  72. 1 2
      install/whisparr-v5-install.sh
  73. 1 2
      install/whoogle-v5-install.sh
  74. 1 2
      install/wikijs-v5-install.sh
  75. 1 2
      install/wireguard-v5-install.sh
  76. 1 2
      install/yunohost-v5-install.sh
  77. 1 2
      install/zigbee2mqtt-v5-install.sh
  78. 1 2
      install/zwave-js-ui-v5-install.sh
  79. 1 1
      misc/update-lxcs.sh

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 2 - 3
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 2 - 3
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 2
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)

+ 1 - 1
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"