diff --git a/install/adguard-v5-install.sh b/install/adguard-v5-install.sh index b6e29c9b..c0b25a06 100644 --- a/install/adguard-v5-install.sh +++ b/install/adguard-v5-install.sh @@ -97,8 +97,8 @@ msg_ok "Installed AdGuard Home" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/audiobookshelf-v5-install.sh b/install/audiobookshelf-v5-install.sh index 11bee0b4..97c8eff0 100644 --- a/install/audiobookshelf-v5-install.sh +++ b/install/audiobookshelf-v5-install.sh @@ -95,7 +95,8 @@ msg_ok "Installed audiobookshelf" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/autobrr-v5-install.sh b/install/autobrr-v5-install.sh index 88e679ff..5b2a5b5b 100644 --- a/install/autobrr-v5-install.sh +++ b/install/autobrr-v5-install.sh @@ -116,7 +116,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/blocky-v5-install.sh b/install/blocky-v5-install.sh index f83b3790..7ed768c8 100644 --- a/install/blocky-v5-install.sh +++ b/install/blocky-v5-install.sh @@ -349,7 +349,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/casaos-v5-install.sh b/install/casaos-v5-install.sh index 2da7adb1..e95f5cc7 100644 --- a/install/casaos-v5-install.sh +++ b/install/casaos-v5-install.sh @@ -105,8 +105,8 @@ msg_ok "Installed CasaOS" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/changedetection-v5-install.sh b/install/changedetection-v5-install.sh index a0cfc07c..1496283a 100644 --- a/install/changedetection-v5-install.sh +++ b/install/changedetection-v5-install.sh @@ -109,7 +109,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/cronicle-v5-install.sh b/install/cronicle-v5-install.sh index 1627585a..69b540bf 100644 --- a/install/cronicle-v5-install.sh +++ b/install/cronicle-v5-install.sh @@ -115,7 +115,8 @@ 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" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/daemonsync-v5-install.sh b/install/daemonsync-v5-install.sh index 430222e5..74aef123 100644 --- a/install/daemonsync-v5-install.sh +++ b/install/daemonsync-v5-install.sh @@ -94,8 +94,8 @@ 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" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/dashy-v5-install.sh b/install/dashy-v5-install.sh index 3a16559c..ee1f8f3d 100644 --- a/install/dashy-v5-install.sh +++ b/install/dashy-v5-install.sh @@ -125,8 +125,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/debian-v5-install.sh b/install/debian-v5-install.sh index a225500f..f76ab897 100644 --- a/install/debian-v5-install.sh +++ b/install/debian-v5-install.sh @@ -87,7 +87,8 @@ msg_ok "Installed Dependencies" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/deconz-v5-install.sh b/install/deconz-v5-install.sh index ad041aef..c8592c0f 100644 --- a/install/deconz-v5-install.sh +++ b/install/deconz-v5-install.sh @@ -118,7 +118,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/deluge-v5-install.sh b/install/deluge-v5-install.sh index b9d61ddc..c083ba91 100644 --- a/install/deluge-v5-install.sh +++ b/install/deluge-v5-install.sh @@ -132,7 +132,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/docker-v5-install.sh b/install/docker-v5-install.sh index 7a4e6edb..9fdce700 100644 --- a/install/docker-v5-install.sh +++ b/install/docker-v5-install.sh @@ -149,8 +149,8 @@ fi echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/emby-v5-install.sh b/install/emby-v5-install.sh index a75436f3..61cfb74b 100644 --- a/install/emby-v5-install.sh +++ b/install/emby-v5-install.sh @@ -108,7 +108,8 @@ msg_ok "Installed Emby" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/emqx-v5-install.sh b/install/emqx-v5-install.sh index 10c6b668..9f5ff6ad 100644 --- a/install/emqx-v5-install.sh +++ b/install/emqx-v5-install.sh @@ -93,7 +93,8 @@ msg_ok "Installed EMQX" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/esphome-v5-install.sh b/install/esphome-v5-install.sh index ee669de3..65e4e5a8 100644 --- a/install/esphome-v5-install.sh +++ b/install/esphome-v5-install.sh @@ -114,8 +114,8 @@ msg_ok "Installed ESPHome Dashboard" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/grafana-v5-install.sh b/install/grafana-v5-install.sh index 5f32c141..1188a66c 100644 --- a/install/grafana-v5-install.sh +++ b/install/grafana-v5-install.sh @@ -101,8 +101,8 @@ msg_ok "Installed Grafana" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/grocy-v5-install.sh b/install/grocy-v5-install.sh index 52be7497..13a533eb 100644 --- a/install/grocy-v5-install.sh +++ b/install/grocy-v5-install.sh @@ -131,7 +131,8 @@ msg_ok "Installed grocy" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/heimdalldashboard-v5-install.sh b/install/heimdalldashboard-v5-install.sh index 7de417d5..1b7c6b6c 100644 --- a/install/heimdalldashboard-v5-install.sh +++ b/install/heimdalldashboard-v5-install.sh @@ -125,8 +125,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/homeassistant-core-v5-install.sh b/install/homeassistant-core-v5-install.sh index b5af8e82..bf92bcdb 100644 --- a/install/homeassistant-core-v5-install.sh +++ b/install/homeassistant-core-v5-install.sh @@ -167,7 +167,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/homeassistant-v5-install.sh b/install/homeassistant-v5-install.sh index f630ccd4..d73cad20 100644 --- a/install/homeassistant-v5-install.sh +++ b/install/homeassistant-v5-install.sh @@ -152,8 +152,8 @@ 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" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/homebridge-v5-install.sh b/install/homebridge-v5-install.sh index feb8896c..7e4a4eca 100644 --- a/install/homebridge-v5-install.sh +++ b/install/homebridge-v5-install.sh @@ -104,8 +104,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/homepage-v5-install.sh b/install/homepage-v5-install.sh index ce3471d1..9569821a 100644 --- a/install/homepage-v5-install.sh +++ b/install/homepage-v5-install.sh @@ -124,7 +124,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/homer-v5-install.sh b/install/homer-v5-install.sh index 3b767874..6069636e 100644 --- a/install/homer-v5-install.sh +++ b/install/homer-v5-install.sh @@ -113,7 +113,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/hyperion-v5-install.sh b/install/hyperion-v5-install.sh index 5c134f7e..0c521496 100644 --- a/install/hyperion-v5-install.sh +++ b/install/hyperion-v5-install.sh @@ -98,7 +98,8 @@ msg_ok "Installed Hyperion" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/influxdb-v5-install.sh b/install/influxdb-v5-install.sh index 76fb4f85..4409db12 100644 --- a/install/influxdb-v5-install.sh +++ b/install/influxdb-v5-install.sh @@ -127,8 +127,8 @@ fi echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/iobroker-v5-install.sh b/install/iobroker-v5-install.sh index a9d62034..4863b9ea 100644 --- a/install/iobroker-v5-install.sh +++ b/install/iobroker-v5-install.sh @@ -92,8 +92,8 @@ msg_ok "Installed ioBroker" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/jellyfin-v5-install.sh b/install/jellyfin-v5-install.sh index f69768a9..72d8888b 100644 --- a/install/jellyfin-v5-install.sh +++ b/install/jellyfin-v5-install.sh @@ -132,7 +132,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/k0s-v5-install.sh b/install/k0s-v5-install.sh index 3537cb0e..23cd4980 100644 --- a/install/k0s-v5-install.sh +++ b/install/k0s-v5-install.sh @@ -108,7 +108,8 @@ fi echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/kavita-v5-install.sh b/install/kavita-v5-install.sh index fa26a9bb..d6a654c6 100644 --- a/install/kavita-v5-install.sh +++ b/install/kavita-v5-install.sh @@ -114,7 +114,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/keycloak-v5-install.sh b/install/keycloak-v5-install.sh index c9cf2416..ebf529b5 100644 --- a/install/keycloak-v5-install.sh +++ b/install/keycloak-v5-install.sh @@ -111,7 +111,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/lidarr-v5-install.sh b/install/lidarr-v5-install.sh index 0e167ffc..5f10ef87 100644 --- a/install/lidarr-v5-install.sh +++ b/install/lidarr-v5-install.sh @@ -118,7 +118,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/magicmirror-v5-install.sh b/install/magicmirror-v5-install.sh index 721f5f2b..8d56039b 100644 --- a/install/magicmirror-v5-install.sh +++ b/install/magicmirror-v5-install.sh @@ -220,7 +220,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/mariadb-v5-install.sh b/install/mariadb-v5-install.sh index df9b2a5c..bb52e4c0 100644 --- a/install/mariadb-v5-install.sh +++ b/install/mariadb-v5-install.sh @@ -109,8 +109,8 @@ fi echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/meshcentral-v5-install.sh b/install/meshcentral-v5-install.sh index bc1d76b2..e1c3f169 100644 --- a/install/meshcentral-v5-install.sh +++ b/install/meshcentral-v5-install.sh @@ -103,8 +103,8 @@ msg_ok "Installed MeshCentral" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/motioneye-v5-install.sh b/install/motioneye-v5-install.sh index 73eb3ec1..8b1e8728 100644 --- a/install/motioneye-v5-install.sh +++ b/install/motioneye-v5-install.sh @@ -122,8 +122,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/mqtt-v5-install.sh b/install/mqtt-v5-install.sh index cb166bbe..d6816bd1 100644 --- a/install/mqtt-v5-install.sh +++ b/install/mqtt-v5-install.sh @@ -99,8 +99,8 @@ 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" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/n8n-v5-install.sh b/install/n8n-v5-install.sh index b33cb36f..015c2d19 100644 --- a/install/n8n-v5-install.sh +++ b/install/n8n-v5-install.sh @@ -114,8 +114,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/navidrome-v5-install.sh b/install/navidrome-v5-install.sh index c38d87ab..8cae7d1e 100644 --- a/install/navidrome-v5-install.sh +++ b/install/navidrome-v5-install.sh @@ -142,7 +142,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/nextcloudpi-v5-install.sh b/install/nextcloudpi-v5-install.sh index 63e067c6..4837c941 100644 --- a/install/nextcloudpi-v5-install.sh +++ b/install/nextcloudpi-v5-install.sh @@ -94,7 +94,8 @@ msg_ok "Installed NextCloudPi" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/nginxproxymanager-v5-install.sh b/install/nginxproxymanager-v5-install.sh index 91472767..dcc483c0 100644 --- a/install/nginxproxymanager-v5-install.sh +++ b/install/nginxproxymanager-v5-install.sh @@ -246,8 +246,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/nocodb-v5-install.sh b/install/nocodb-v5-install.sh index d2ca6558..560f287f 100644 --- a/install/nocodb-v5-install.sh +++ b/install/nocodb-v5-install.sh @@ -121,8 +121,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/node-red-v5-install.sh b/install/node-red-v5-install.sh index 5d0280a8..f2ca79c0 100644 --- a/install/node-red-v5-install.sh +++ b/install/node-red-v5-install.sh @@ -124,8 +124,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/omada-v5-install.sh b/install/omada-v5-install.sh index dad80287..19b0e859 100644 --- a/install/omada-v5-install.sh +++ b/install/omada-v5-install.sh @@ -98,7 +98,8 @@ msg_ok "Installed Omada Controller" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/omv-v5-install.sh b/install/omv-v5-install.sh index 641d04cc..16b97328 100644 --- a/install/omv-v5-install.sh +++ b/install/omv-v5-install.sh @@ -110,7 +110,8 @@ msg_ok "Installed OpenMediaVault" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/openhab-v5-install.sh b/install/openhab-v5-install.sh index 22fd3b22..9f965078 100644 --- a/install/openhab-v5-install.sh +++ b/install/openhab-v5-install.sh @@ -109,7 +109,8 @@ msg_ok "Installed openHAB" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/paperless-ngx-v5-install.sh b/install/paperless-ngx-v5-install.sh index 9552803f..e8678e87 100644 --- a/install/paperless-ngx-v5-install.sh +++ b/install/paperless-ngx-v5-install.sh @@ -270,8 +270,8 @@ msg_ok "Created Services" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/photoprism-v5-install.sh b/install/photoprism-v5-install.sh index cf1a1ad5..b08ba367 100644 --- a/install/photoprism-v5-install.sh +++ b/install/photoprism-v5-install.sh @@ -182,8 +182,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/pihole-v5-install.sh b/install/pihole-v5-install.sh index 0ae6ce8b..173dc55e 100644 --- a/install/pihole-v5-install.sh +++ b/install/pihole-v5-install.sh @@ -115,8 +115,8 @@ msg_ok "Installed Pi-hole" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/plex-v5-install.sh b/install/plex-v5-install.sh index bb6bae0a..b41194cf 100644 --- a/install/plex-v5-install.sh +++ b/install/plex-v5-install.sh @@ -112,7 +112,8 @@ 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" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/podman-homeassistant-v5-install.sh b/install/podman-homeassistant-v5-install.sh index 30bb46e1..cc1f47ce 100644 --- a/install/podman-homeassistant-v5-install.sh +++ b/install/podman-homeassistant-v5-install.sh @@ -114,8 +114,8 @@ msg_ok "Installed Home Assistant" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/podman-v5-install.sh b/install/podman-v5-install.sh index 9ff8b6e7..999078b4 100644 --- a/install/podman-v5-install.sh +++ b/install/podman-v5-install.sh @@ -93,7 +93,8 @@ msg_ok "Installed Podman" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/postgresql-v5-install.sh b/install/postgresql-v5-install.sh index 22bfa889..fbf933bc 100644 --- a/install/postgresql-v5-install.sh +++ b/install/postgresql-v5-install.sh @@ -216,7 +216,8 @@ fi echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/prometheus-v5-install.sh b/install/prometheus-v5-install.sh index b706da01..fa54911f 100644 --- a/install/prometheus-v5-install.sh +++ b/install/prometheus-v5-install.sh @@ -123,7 +123,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/prowlarr-v5-install.sh b/install/prowlarr-v5-install.sh index c44ecee1..1812775b 100644 --- a/install/prowlarr-v5-install.sh +++ b/install/prowlarr-v5-install.sh @@ -116,7 +116,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/radarr-v5-install.sh b/install/radarr-v5-install.sh index d70f67d3..08dc24a2 100644 --- a/install/radarr-v5-install.sh +++ b/install/radarr-v5-install.sh @@ -116,7 +116,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/readarr-v5-install.sh b/install/readarr-v5-install.sh index daba1651..e49cf23d 100644 --- a/install/readarr-v5-install.sh +++ b/install/readarr-v5-install.sh @@ -116,7 +116,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/sabnzbd-v5-install.sh b/install/sabnzbd-v5-install.sh index 2f0f9cb4..339bdc2a 100644 --- a/install/sabnzbd-v5-install.sh +++ b/install/sabnzbd-v5-install.sh @@ -121,7 +121,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/scrypted-v5-install.sh b/install/scrypted-v5-install.sh index 4f80148f..33bbe730 100644 --- a/install/scrypted-v5-install.sh +++ b/install/scrypted-v5-install.sh @@ -181,7 +181,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/shinobi-v5-install.sh b/install/shinobi-v5-install.sh index cae51f02..67fa20a3 100644 --- a/install/shinobi-v5-install.sh +++ b/install/shinobi-v5-install.sh @@ -150,7 +150,8 @@ msg_ok "Installed Shinobi" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/sonarr-v5-install.sh b/install/sonarr-v5-install.sh index c47d94b2..15e25a00 100644 --- a/install/sonarr-v5-install.sh +++ b/install/sonarr-v5-install.sh @@ -97,7 +97,8 @@ msg_ok "Installed Sonarr" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/syncthing-v5-install.sh b/install/syncthing-v5-install.sh index aa6f1a51..120e977e 100644 --- a/install/syncthing-v5-install.sh +++ b/install/syncthing-v5-install.sh @@ -100,7 +100,8 @@ msg_ok "Installed Syncthing" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/tdarr-v5-install.sh b/install/tdarr-v5-install.sh index 0b5f456d..65e6ebc9 100644 --- a/install/tdarr-v5-install.sh +++ b/install/tdarr-v5-install.sh @@ -143,7 +143,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/technitiumdns-v5-install.sh b/install/technitiumdns-v5-install.sh index b771ce99..6e24b5fc 100644 --- a/install/technitiumdns-v5-install.sh +++ b/install/technitiumdns-v5-install.sh @@ -95,8 +95,8 @@ msg_ok "Installed Technitium DNS" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/transmission-v5-install.sh b/install/transmission-v5-install.sh index 7e3aa693..805481fd 100644 --- a/install/transmission-v5-install.sh +++ b/install/transmission-v5-install.sh @@ -95,7 +95,8 @@ msg_ok "Installed Transmission" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/trilium-v5-install.sh b/install/trilium-v5-install.sh index 9883ebc7..e2718c19 100644 --- a/install/trilium-v5-install.sh +++ b/install/trilium-v5-install.sh @@ -117,7 +117,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/ubuntu-v5-install.sh b/install/ubuntu-v5-install.sh index 0c4b011e..3e33635a 100644 --- a/install/ubuntu-v5-install.sh +++ b/install/ubuntu-v5-install.sh @@ -88,7 +88,8 @@ msg_ok "Installed Dependencies" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/umbrel-v5-install.sh b/install/umbrel-v5-install.sh index 37da8e5e..6ed1fba9 100644 --- a/install/umbrel-v5-install.sh +++ b/install/umbrel-v5-install.sh @@ -106,8 +106,8 @@ msg_ok "Installed Umbrel" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/unifi-v5-install.sh b/install/unifi-v5-install.sh index d63d5f1a..0b26995b 100644 --- a/install/unifi-v5-install.sh +++ b/install/unifi-v5-install.sh @@ -101,8 +101,8 @@ 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" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/uptimekuma-v5-install.sh b/install/uptimekuma-v5-install.sh index 1d4fab67..2c846bca 100644 --- a/install/uptimekuma-v5-install.sh +++ b/install/uptimekuma-v5-install.sh @@ -121,8 +121,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/vaultwarden-v5-install.sh b/install/vaultwarden-v5-install.sh index 1441c76d..892f7b2c 100644 --- a/install/vaultwarden-v5-install.sh +++ b/install/vaultwarden-v5-install.sh @@ -178,8 +178,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/whisparr-v5-install.sh b/install/whisparr-v5-install.sh index dde20189..69010e15 100644 --- a/install/whisparr-v5-install.sh +++ b/install/whisparr-v5-install.sh @@ -116,7 +116,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/whoogle-v5-install.sh b/install/whoogle-v5-install.sh index 413379e0..58648c30 100644 --- a/install/whoogle-v5-install.sh +++ b/install/whoogle-v5-install.sh @@ -110,7 +110,8 @@ msg_ok "Installed Whoogle" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/wikijs-v5-install.sh b/install/wikijs-v5-install.sh index f8ce5830..752ce649 100644 --- a/install/wikijs-v5-install.sh +++ b/install/wikijs-v5-install.sh @@ -138,7 +138,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/wireguard-v5-install.sh b/install/wireguard-v5-install.sh index 889115c1..543dac74 100644 --- a/install/wireguard-v5-install.sh +++ b/install/wireguard-v5-install.sh @@ -110,8 +110,8 @@ msg_ok "Installed WireGuard" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/yunohost-v5-install.sh b/install/yunohost-v5-install.sh index a7a8514b..8e4cc316 100644 --- a/install/yunohost-v5-install.sh +++ b/install/yunohost-v5-install.sh @@ -97,7 +97,8 @@ msg_ok "Installed YunoHost" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - chmod -x /etc/update-motd.d/* + OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/zigbee2mqtt-v5-install.sh b/install/zigbee2mqtt-v5-install.sh index 63681f7c..d51cfe33 100644 --- a/install/zigbee2mqtt-v5-install.sh +++ b/install/zigbee2mqtt-v5-install.sh @@ -137,8 +137,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/zwave-js-ui-v5-install.sh b/install/zwave-js-ui-v5-install.sh index 7875dcd3..929f613c 100644 --- a/install/zwave-js-ui-v5-install.sh +++ b/install/zwave-js-ui-v5-install.sh @@ -113,8 +113,8 @@ msg_ok "Created Service" echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" - rm /etc/motd - rm /etc/update-motd.d/10-uname +OS=`awk '/^ostype/' temp | 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" mkdir -p $(dirname $GETTY_OVERRIDE)