From d8f7049cc8ee55199df7bc7b8af2885b6f0d01a0 Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 3 Feb 2023 06:53:22 -0500 Subject: [PATCH] grep os --- install/adguard-v5-install.sh | 2 +- install/audiobookshelf-v5-install.sh | 2 +- install/autobrr-v5-install.sh | 2 +- install/blocky-v5-install.sh | 2 +- install/casaos-v5-install.sh | 2 +- install/changedetection-v5-install.sh | 2 +- install/cronicle-v5-install.sh | 2 +- install/daemonsync-v5-install.sh | 2 +- install/dashy-v5-install.sh | 2 +- install/deconz-v5-install.sh | 2 +- install/deluge-v5-install.sh | 2 +- install/docker-v5-install.sh | 2 +- install/emby-v5-install.sh | 2 +- install/emqx-v5-install.sh | 2 +- install/esphome-v5-install.sh | 2 +- install/grafana-v5-install.sh | 2 +- install/grocy-v5-install.sh | 2 +- install/heimdalldashboard-v5-install.sh | 2 +- install/homeassistant-core-v5-install.sh | 2 +- install/homeassistant-v5-install.sh | 2 +- install/homebridge-v5-install.sh | 2 +- install/homepage-v5-install.sh | 2 +- install/homer-v5-install.sh | 2 +- install/hyperion-v5-install.sh | 2 +- install/influxdb-v5-install.sh | 2 +- install/iobroker-v5-install.sh | 2 +- install/jellyfin-v5-install.sh | 2 +- install/k0s-v5-install.sh | 2 +- install/kavita-v5-install.sh | 2 +- install/keycloak-v5-install.sh | 2 +- install/lidarr-v5-install.sh | 2 +- install/magicmirror-v5-install.sh | 2 +- install/mariadb-v5-install.sh | 2 +- install/meshcentral-v5-install.sh | 2 +- install/motioneye-v5-install.sh | 2 +- install/mqtt-v5-install.sh | 2 +- install/n8n-v5-install.sh | 2 +- install/navidrome-v5-install.sh | 2 +- install/nextcloudpi-v5-install.sh | 2 +- install/nginxproxymanager-v5-install.sh | 2 +- install/nocodb-v5-install.sh | 2 +- install/node-red-v5-install.sh | 2 +- install/omada-v5-install.sh | 2 +- install/omv-v5-install.sh | 2 +- install/openhab-v5-install.sh | 2 +- install/paperless-ngx-v5-install.sh | 2 +- install/photoprism-v5-install.sh | 2 +- install/pihole-v5-install.sh | 2 +- install/plex-v5-install.sh | 2 +- install/podman-homeassistant-v5-install.sh | 2 +- install/podman-v5-install.sh | 2 +- install/postgresql-v5-install.sh | 2 +- install/prometheus-v5-install.sh | 2 +- install/prowlarr-v5-install.sh | 2 +- install/radarr-v5-install.sh | 2 +- install/readarr-v5-install.sh | 2 +- install/sabnzbd-v5-install.sh | 2 +- install/scrypted-v5-install.sh | 2 +- install/shinobi-v5-install.sh | 2 +- install/sonarr-v5-install.sh | 2 +- install/syncthing-v5-install.sh | 2 +- install/tdarr-v5-install.sh | 2 +- install/technitiumdns-v5-install.sh | 2 +- install/transmission-v5-install.sh | 2 +- install/trilium-v5-install.sh | 2 +- install/ubuntu-v5-install.sh | 2 +- install/umbrel-v5-install.sh | 2 +- install/unifi-v5-install.sh | 2 +- install/uptimekuma-v5-install.sh | 2 +- install/vaultwarden-v5-install.sh | 2 +- install/whisparr-v5-install.sh | 2 +- install/whoogle-v5-install.sh | 2 +- install/wikijs-v5-install.sh | 2 +- install/wireguard-v5-install.sh | 2 +- install/yunohost-v5-install.sh | 2 +- install/zigbee2mqtt-v5-install.sh | 2 +- install/zwave-js-ui-v5-install.sh | 2 +- 77 files changed, 77 insertions(+), 77 deletions(-) diff --git a/install/adguard-v5-install.sh b/install/adguard-v5-install.sh index 4fe09132..533c988a 100644 --- a/install/adguard-v5-install.sh +++ b/install/adguard-v5-install.sh @@ -97,7 +97,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=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/audiobookshelf-v5-install.sh b/install/audiobookshelf-v5-install.sh index 2d3e48b6..e9086b57 100644 --- a/install/audiobookshelf-v5-install.sh +++ b/install/audiobookshelf-v5-install.sh @@ -95,7 +95,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/autobrr-v5-install.sh b/install/autobrr-v5-install.sh index 5303053b..03a1d05c 100644 --- a/install/autobrr-v5-install.sh +++ b/install/autobrr-v5-install.sh @@ -116,7 +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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/blocky-v5-install.sh b/install/blocky-v5-install.sh index 4314c928..b68882b1 100644 --- a/install/blocky-v5-install.sh +++ b/install/blocky-v5-install.sh @@ -349,7 +349,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/casaos-v5-install.sh b/install/casaos-v5-install.sh index 6f924680..013a9a46 100644 --- a/install/casaos-v5-install.sh +++ b/install/casaos-v5-install.sh @@ -105,7 +105,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=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/changedetection-v5-install.sh b/install/changedetection-v5-install.sh index e2adafaf..f8b24983 100644 --- a/install/changedetection-v5-install.sh +++ b/install/changedetection-v5-install.sh @@ -109,7 +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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/cronicle-v5-install.sh b/install/cronicle-v5-install.sh index 93578f16..d9c2aca7 100644 --- a/install/cronicle-v5-install.sh +++ b/install/cronicle-v5-install.sh @@ -115,7 +115,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/daemonsync-v5-install.sh b/install/daemonsync-v5-install.sh index 50a8a7fa..04229094 100644 --- a/install/daemonsync-v5-install.sh +++ b/install/daemonsync-v5-install.sh @@ -94,7 +94,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=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/dashy-v5-install.sh b/install/dashy-v5-install.sh index 990b20fd..84bc8eaa 100644 --- a/install/dashy-v5-install.sh +++ b/install/dashy-v5-install.sh @@ -125,7 +125,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=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/deconz-v5-install.sh b/install/deconz-v5-install.sh index a108308a..1b4a59b3 100644 --- a/install/deconz-v5-install.sh +++ b/install/deconz-v5-install.sh @@ -118,7 +118,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/deluge-v5-install.sh b/install/deluge-v5-install.sh index cc489236..4d2c8e21 100644 --- a/install/deluge-v5-install.sh +++ b/install/deluge-v5-install.sh @@ -132,7 +132,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/docker-v5-install.sh b/install/docker-v5-install.sh index fe5f837d..fa8b1495 100644 --- a/install/docker-v5-install.sh +++ b/install/docker-v5-install.sh @@ -149,7 +149,7 @@ fi echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" -OS=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/emby-v5-install.sh b/install/emby-v5-install.sh index e89df26e..18d832f1 100644 --- a/install/emby-v5-install.sh +++ b/install/emby-v5-install.sh @@ -108,7 +108,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/emqx-v5-install.sh b/install/emqx-v5-install.sh index d7e97300..bcbae979 100644 --- a/install/emqx-v5-install.sh +++ b/install/emqx-v5-install.sh @@ -93,7 +93,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/esphome-v5-install.sh b/install/esphome-v5-install.sh index 4204d0b5..433d8487 100644 --- a/install/esphome-v5-install.sh +++ b/install/esphome-v5-install.sh @@ -114,7 +114,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=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/grafana-v5-install.sh b/install/grafana-v5-install.sh index 810456ca..b695df32 100644 --- a/install/grafana-v5-install.sh +++ b/install/grafana-v5-install.sh @@ -101,7 +101,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=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/grocy-v5-install.sh b/install/grocy-v5-install.sh index 10f34e86..34073ba0 100644 --- a/install/grocy-v5-install.sh +++ b/install/grocy-v5-install.sh @@ -131,7 +131,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/heimdalldashboard-v5-install.sh b/install/heimdalldashboard-v5-install.sh index 86271cad..ce1b5f75 100644 --- a/install/heimdalldashboard-v5-install.sh +++ b/install/heimdalldashboard-v5-install.sh @@ -125,7 +125,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=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/homeassistant-core-v5-install.sh b/install/homeassistant-core-v5-install.sh index be8255e6..1ca60ef6 100644 --- a/install/homeassistant-core-v5-install.sh +++ b/install/homeassistant-core-v5-install.sh @@ -167,7 +167,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/homeassistant-v5-install.sh b/install/homeassistant-v5-install.sh index 0d8016fc..b6c63719 100644 --- a/install/homeassistant-v5-install.sh +++ b/install/homeassistant-v5-install.sh @@ -152,7 +152,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=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/homebridge-v5-install.sh b/install/homebridge-v5-install.sh index ae9b3c96..1bf8da31 100644 --- a/install/homebridge-v5-install.sh +++ b/install/homebridge-v5-install.sh @@ -104,7 +104,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=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/homepage-v5-install.sh b/install/homepage-v5-install.sh index caba9494..81bc069e 100644 --- a/install/homepage-v5-install.sh +++ b/install/homepage-v5-install.sh @@ -124,7 +124,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/homer-v5-install.sh b/install/homer-v5-install.sh index e3fa4280..b7bbed3a 100644 --- a/install/homer-v5-install.sh +++ b/install/homer-v5-install.sh @@ -113,7 +113,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/hyperion-v5-install.sh b/install/hyperion-v5-install.sh index 725311d3..82bf8084 100644 --- a/install/hyperion-v5-install.sh +++ b/install/hyperion-v5-install.sh @@ -98,7 +98,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/influxdb-v5-install.sh b/install/influxdb-v5-install.sh index d7a3b559..6c16f851 100644 --- a/install/influxdb-v5-install.sh +++ b/install/influxdb-v5-install.sh @@ -127,7 +127,7 @@ fi echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" -OS=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/iobroker-v5-install.sh b/install/iobroker-v5-install.sh index a3ffe35a..9baddbb6 100644 --- a/install/iobroker-v5-install.sh +++ b/install/iobroker-v5-install.sh @@ -92,7 +92,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=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/jellyfin-v5-install.sh b/install/jellyfin-v5-install.sh index dfc505c6..9b06ea4c 100644 --- a/install/jellyfin-v5-install.sh +++ b/install/jellyfin-v5-install.sh @@ -132,7 +132,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/k0s-v5-install.sh b/install/k0s-v5-install.sh index 5adc80ea..8a8553ae 100644 --- a/install/k0s-v5-install.sh +++ b/install/k0s-v5-install.sh @@ -108,7 +108,7 @@ fi echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - OS=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/kavita-v5-install.sh b/install/kavita-v5-install.sh index 656a5fc9..e7f41d47 100644 --- a/install/kavita-v5-install.sh +++ b/install/kavita-v5-install.sh @@ -114,7 +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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/keycloak-v5-install.sh b/install/keycloak-v5-install.sh index d2b53cb0..6fdf6051 100644 --- a/install/keycloak-v5-install.sh +++ b/install/keycloak-v5-install.sh @@ -111,7 +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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/lidarr-v5-install.sh b/install/lidarr-v5-install.sh index ac1b25af..d32cf2af 100644 --- a/install/lidarr-v5-install.sh +++ b/install/lidarr-v5-install.sh @@ -118,7 +118,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/magicmirror-v5-install.sh b/install/magicmirror-v5-install.sh index ea4db148..94db7430 100644 --- a/install/magicmirror-v5-install.sh +++ b/install/magicmirror-v5-install.sh @@ -220,7 +220,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/mariadb-v5-install.sh b/install/mariadb-v5-install.sh index 95b4af65..35d38926 100644 --- a/install/mariadb-v5-install.sh +++ b/install/mariadb-v5-install.sh @@ -109,7 +109,7 @@ fi echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" -OS=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/meshcentral-v5-install.sh b/install/meshcentral-v5-install.sh index 5c571778..825aaa00 100644 --- a/install/meshcentral-v5-install.sh +++ b/install/meshcentral-v5-install.sh @@ -103,7 +103,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=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/motioneye-v5-install.sh b/install/motioneye-v5-install.sh index 4ef656ce..772149a2 100644 --- a/install/motioneye-v5-install.sh +++ b/install/motioneye-v5-install.sh @@ -122,7 +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=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/mqtt-v5-install.sh b/install/mqtt-v5-install.sh index c3904a9c..867fb2bb 100644 --- a/install/mqtt-v5-install.sh +++ b/install/mqtt-v5-install.sh @@ -99,7 +99,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=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/n8n-v5-install.sh b/install/n8n-v5-install.sh index f5b4f1de..d72a9c2d 100644 --- a/install/n8n-v5-install.sh +++ b/install/n8n-v5-install.sh @@ -114,7 +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=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/navidrome-v5-install.sh b/install/navidrome-v5-install.sh index f8fc9e41..519177bd 100644 --- a/install/navidrome-v5-install.sh +++ b/install/navidrome-v5-install.sh @@ -142,7 +142,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/nextcloudpi-v5-install.sh b/install/nextcloudpi-v5-install.sh index a18bccc9..fc3f7c74 100644 --- a/install/nextcloudpi-v5-install.sh +++ b/install/nextcloudpi-v5-install.sh @@ -94,7 +94,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/nginxproxymanager-v5-install.sh b/install/nginxproxymanager-v5-install.sh index 6c5811a3..ae45c980 100644 --- a/install/nginxproxymanager-v5-install.sh +++ b/install/nginxproxymanager-v5-install.sh @@ -246,7 +246,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=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/nocodb-v5-install.sh b/install/nocodb-v5-install.sh index cbea4bb3..340863f9 100644 --- a/install/nocodb-v5-install.sh +++ b/install/nocodb-v5-install.sh @@ -121,7 +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=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/node-red-v5-install.sh b/install/node-red-v5-install.sh index c3117643..b9cb9bc9 100644 --- a/install/node-red-v5-install.sh +++ b/install/node-red-v5-install.sh @@ -124,7 +124,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=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/omada-v5-install.sh b/install/omada-v5-install.sh index 4731b930..79fd4e5f 100644 --- a/install/omada-v5-install.sh +++ b/install/omada-v5-install.sh @@ -98,7 +98,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/omv-v5-install.sh b/install/omv-v5-install.sh index 3282429b..90623f7c 100644 --- a/install/omv-v5-install.sh +++ b/install/omv-v5-install.sh @@ -110,7 +110,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/openhab-v5-install.sh b/install/openhab-v5-install.sh index 6d707be0..ca7a23d9 100644 --- a/install/openhab-v5-install.sh +++ b/install/openhab-v5-install.sh @@ -109,7 +109,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/paperless-ngx-v5-install.sh b/install/paperless-ngx-v5-install.sh index 2e395532..3eb5cb42 100644 --- a/install/paperless-ngx-v5-install.sh +++ b/install/paperless-ngx-v5-install.sh @@ -270,7 +270,7 @@ msg_ok "Created Services" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" -OS=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/photoprism-v5-install.sh b/install/photoprism-v5-install.sh index dcfc2c8d..48584dcb 100644 --- a/install/photoprism-v5-install.sh +++ b/install/photoprism-v5-install.sh @@ -182,7 +182,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=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/pihole-v5-install.sh b/install/pihole-v5-install.sh index fda6a25a..c1d93dd4 100644 --- a/install/pihole-v5-install.sh +++ b/install/pihole-v5-install.sh @@ -115,7 +115,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=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/plex-v5-install.sh b/install/plex-v5-install.sh index 75ed991f..b9a46f66 100644 --- a/install/plex-v5-install.sh +++ b/install/plex-v5-install.sh @@ -112,7 +112,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/podman-homeassistant-v5-install.sh b/install/podman-homeassistant-v5-install.sh index a190a7b3..277afab7 100644 --- a/install/podman-homeassistant-v5-install.sh +++ b/install/podman-homeassistant-v5-install.sh @@ -114,7 +114,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=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/podman-v5-install.sh b/install/podman-v5-install.sh index 46f20174..98928d14 100644 --- a/install/podman-v5-install.sh +++ b/install/podman-v5-install.sh @@ -93,7 +93,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/postgresql-v5-install.sh b/install/postgresql-v5-install.sh index 21fc9dd1..bc14a5dc 100644 --- a/install/postgresql-v5-install.sh +++ b/install/postgresql-v5-install.sh @@ -216,7 +216,7 @@ fi echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - OS=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/prometheus-v5-install.sh b/install/prometheus-v5-install.sh index fde7059f..faf3d67a 100644 --- a/install/prometheus-v5-install.sh +++ b/install/prometheus-v5-install.sh @@ -123,7 +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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/prowlarr-v5-install.sh b/install/prowlarr-v5-install.sh index 3215554c..7fa6898b 100644 --- a/install/prowlarr-v5-install.sh +++ b/install/prowlarr-v5-install.sh @@ -116,7 +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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/radarr-v5-install.sh b/install/radarr-v5-install.sh index 583de35b..58f9c4a6 100644 --- a/install/radarr-v5-install.sh +++ b/install/radarr-v5-install.sh @@ -116,7 +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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/readarr-v5-install.sh b/install/readarr-v5-install.sh index 8591a0ac..d4586f0d 100644 --- a/install/readarr-v5-install.sh +++ b/install/readarr-v5-install.sh @@ -116,7 +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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/sabnzbd-v5-install.sh b/install/sabnzbd-v5-install.sh index a4ef8824..ccdf4923 100644 --- a/install/sabnzbd-v5-install.sh +++ b/install/sabnzbd-v5-install.sh @@ -121,7 +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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/scrypted-v5-install.sh b/install/scrypted-v5-install.sh index a3019bbb..c55bfba2 100644 --- a/install/scrypted-v5-install.sh +++ b/install/scrypted-v5-install.sh @@ -181,7 +181,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/shinobi-v5-install.sh b/install/shinobi-v5-install.sh index 678890c0..6a6c6d47 100644 --- a/install/shinobi-v5-install.sh +++ b/install/shinobi-v5-install.sh @@ -150,7 +150,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/sonarr-v5-install.sh b/install/sonarr-v5-install.sh index e5e4d122..4d397510 100644 --- a/install/sonarr-v5-install.sh +++ b/install/sonarr-v5-install.sh @@ -97,7 +97,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/syncthing-v5-install.sh b/install/syncthing-v5-install.sh index 6b368721..770fdc90 100644 --- a/install/syncthing-v5-install.sh +++ b/install/syncthing-v5-install.sh @@ -100,7 +100,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/tdarr-v5-install.sh b/install/tdarr-v5-install.sh index 6939b782..35167dfc 100644 --- a/install/tdarr-v5-install.sh +++ b/install/tdarr-v5-install.sh @@ -143,7 +143,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/technitiumdns-v5-install.sh b/install/technitiumdns-v5-install.sh index eac4befb..a410e6cc 100644 --- a/install/technitiumdns-v5-install.sh +++ b/install/technitiumdns-v5-install.sh @@ -95,7 +95,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=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/transmission-v5-install.sh b/install/transmission-v5-install.sh index 9d5a834b..db579d21 100644 --- a/install/transmission-v5-install.sh +++ b/install/transmission-v5-install.sh @@ -95,7 +95,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/trilium-v5-install.sh b/install/trilium-v5-install.sh index 244942fb..4b266ec1 100644 --- a/install/trilium-v5-install.sh +++ b/install/trilium-v5-install.sh @@ -117,7 +117,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/ubuntu-v5-install.sh b/install/ubuntu-v5-install.sh index ebe8cac2..ec35eb7f 100644 --- a/install/ubuntu-v5-install.sh +++ b/install/ubuntu-v5-install.sh @@ -88,7 +88,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/umbrel-v5-install.sh b/install/umbrel-v5-install.sh index c87e0972..3c0e217b 100644 --- a/install/umbrel-v5-install.sh +++ b/install/umbrel-v5-install.sh @@ -106,7 +106,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=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/unifi-v5-install.sh b/install/unifi-v5-install.sh index 5a8792e5..afc4930a 100644 --- a/install/unifi-v5-install.sh +++ b/install/unifi-v5-install.sh @@ -101,7 +101,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=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/uptimekuma-v5-install.sh b/install/uptimekuma-v5-install.sh index 8fd03417..69baf541 100644 --- a/install/uptimekuma-v5-install.sh +++ b/install/uptimekuma-v5-install.sh @@ -121,7 +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=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/vaultwarden-v5-install.sh b/install/vaultwarden-v5-install.sh index 876b1603..aeaab763 100644 --- a/install/vaultwarden-v5-install.sh +++ b/install/vaultwarden-v5-install.sh @@ -178,7 +178,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=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/whisparr-v5-install.sh b/install/whisparr-v5-install.sh index 32447fb9..1c037d5c 100644 --- a/install/whisparr-v5-install.sh +++ b/install/whisparr-v5-install.sh @@ -116,7 +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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/whoogle-v5-install.sh b/install/whoogle-v5-install.sh index b1881b6c..891c28c1 100644 --- a/install/whoogle-v5-install.sh +++ b/install/whoogle-v5-install.sh @@ -110,7 +110,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/wikijs-v5-install.sh b/install/wikijs-v5-install.sh index 0c9b91ef..5cbaeb91 100644 --- a/install/wikijs-v5-install.sh +++ b/install/wikijs-v5-install.sh @@ -138,7 +138,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/wireguard-v5-install.sh b/install/wireguard-v5-install.sh index d0d5bb52..b7647b7b 100644 --- a/install/wireguard-v5-install.sh +++ b/install/wireguard-v5-install.sh @@ -110,7 +110,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=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/yunohost-v5-install.sh b/install/yunohost-v5-install.sh index 3ed36c92..2510ebc1 100644 --- a/install/yunohost-v5-install.sh +++ b/install/yunohost-v5-install.sh @@ -97,7 +97,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=`awk '/^ostype/' temp | cut -d' ' -f2` + OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/zigbee2mqtt-v5-install.sh b/install/zigbee2mqtt-v5-install.sh index 2e79eef1..dfe49bdd 100644 --- a/install/zigbee2mqtt-v5-install.sh +++ b/install/zigbee2mqtt-v5-install.sh @@ -137,7 +137,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=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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" diff --git a/install/zwave-js-ui-v5-install.sh b/install/zwave-js-ui-v5-install.sh index e25ee377..63125469 100644 --- a/install/zwave-js-ui-v5-install.sh +++ b/install/zwave-js-ui-v5-install.sh @@ -113,7 +113,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=`awk '/^ostype/' temp | cut -d' ' -f2` +OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) if [ "$OS" == "debian" ]; then rm /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"