From 351161bc835e9f96b38508acf054d977e02af944 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sat, 4 Feb 2023 09:40:27 -0500 Subject: [PATCH] add rm options --- 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/debian-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 +- 78 files changed, 78 insertions(+), 78 deletions(-) diff --git a/install/adguard-v5-install.sh b/install/adguard-v5-install.sh index e6fafaa3af..73cb6abaec 100644 --- a/install/adguard-v5-install.sh +++ b/install/adguard-v5-install.sh @@ -96,7 +96,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/audiobookshelf-v5-install.sh b/install/audiobookshelf-v5-install.sh index fe7913ef71..3fbd4fc567 100644 --- a/install/audiobookshelf-v5-install.sh +++ b/install/audiobookshelf-v5-install.sh @@ -94,7 +94,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/autobrr-v5-install.sh b/install/autobrr-v5-install.sh index 478b01f8a4..98e9e22f31 100644 --- a/install/autobrr-v5-install.sh +++ b/install/autobrr-v5-install.sh @@ -115,7 +115,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/blocky-v5-install.sh b/install/blocky-v5-install.sh index dbabbbe7b8..2f2fe7f049 100644 --- a/install/blocky-v5-install.sh +++ b/install/blocky-v5-install.sh @@ -348,7 +348,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/casaos-v5-install.sh b/install/casaos-v5-install.sh index 6e0fea4c9e..1b68b8b7ab 100644 --- a/install/casaos-v5-install.sh +++ b/install/casaos-v5-install.sh @@ -104,7 +104,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/changedetection-v5-install.sh b/install/changedetection-v5-install.sh index da0f985403..219298aca8 100644 --- a/install/changedetection-v5-install.sh +++ b/install/changedetection-v5-install.sh @@ -108,7 +108,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/cronicle-v5-install.sh b/install/cronicle-v5-install.sh index 4a9d95a18b..69a5d79874 100644 --- a/install/cronicle-v5-install.sh +++ b/install/cronicle-v5-install.sh @@ -114,7 +114,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/daemonsync-v5-install.sh b/install/daemonsync-v5-install.sh index 82267d9a69..a7ee8c291c 100644 --- a/install/daemonsync-v5-install.sh +++ b/install/daemonsync-v5-install.sh @@ -93,7 +93,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/dashy-v5-install.sh b/install/dashy-v5-install.sh index bfec6f5965..dd2eee9063 100644 --- a/install/dashy-v5-install.sh +++ b/install/dashy-v5-install.sh @@ -124,7 +124,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/debian-v5-install.sh b/install/debian-v5-install.sh index df4d2093e7..176fe03b35 100644 --- a/install/debian-v5-install.sh +++ b/install/debian-v5-install.sh @@ -86,7 +86,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/deconz-v5-install.sh b/install/deconz-v5-install.sh index e579440013..4a4cfe2b21 100644 --- a/install/deconz-v5-install.sh +++ b/install/deconz-v5-install.sh @@ -117,7 +117,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/deluge-v5-install.sh b/install/deluge-v5-install.sh index a6477102fa..618c18adf8 100644 --- a/install/deluge-v5-install.sh +++ b/install/deluge-v5-install.sh @@ -131,7 +131,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/docker-v5-install.sh b/install/docker-v5-install.sh index 8ed8354263..1a79204cf1 100644 --- a/install/docker-v5-install.sh +++ b/install/docker-v5-install.sh @@ -148,7 +148,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/emby-v5-install.sh b/install/emby-v5-install.sh index 6d8a58faea..caed417c3e 100644 --- a/install/emby-v5-install.sh +++ b/install/emby-v5-install.sh @@ -107,7 +107,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/emqx-v5-install.sh b/install/emqx-v5-install.sh index 59245e2b89..5067c51556 100644 --- a/install/emqx-v5-install.sh +++ b/install/emqx-v5-install.sh @@ -92,7 +92,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/esphome-v5-install.sh b/install/esphome-v5-install.sh index c3a74cd81b..e899e86a5d 100644 --- a/install/esphome-v5-install.sh +++ b/install/esphome-v5-install.sh @@ -113,7 +113,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/grafana-v5-install.sh b/install/grafana-v5-install.sh index b9386b4ccb..87f02d1b55 100644 --- a/install/grafana-v5-install.sh +++ b/install/grafana-v5-install.sh @@ -100,7 +100,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/grocy-v5-install.sh b/install/grocy-v5-install.sh index d2f9ed4055..b0945f6f01 100644 --- a/install/grocy-v5-install.sh +++ b/install/grocy-v5-install.sh @@ -130,7 +130,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/heimdalldashboard-v5-install.sh b/install/heimdalldashboard-v5-install.sh index 39a569a6df..04bde39e99 100644 --- a/install/heimdalldashboard-v5-install.sh +++ b/install/heimdalldashboard-v5-install.sh @@ -124,7 +124,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/homeassistant-core-v5-install.sh b/install/homeassistant-core-v5-install.sh index 6a8d6913a0..c4d90f2b4e 100644 --- a/install/homeassistant-core-v5-install.sh +++ b/install/homeassistant-core-v5-install.sh @@ -166,7 +166,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/homeassistant-v5-install.sh b/install/homeassistant-v5-install.sh index 4a72aa7bdf..47e8a5f19c 100644 --- a/install/homeassistant-v5-install.sh +++ b/install/homeassistant-v5-install.sh @@ -151,7 +151,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/homebridge-v5-install.sh b/install/homebridge-v5-install.sh index 3917de67db..3ca4c619b8 100644 --- a/install/homebridge-v5-install.sh +++ b/install/homebridge-v5-install.sh @@ -103,7 +103,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/homepage-v5-install.sh b/install/homepage-v5-install.sh index 80dfab19ed..e7564d2962 100644 --- a/install/homepage-v5-install.sh +++ b/install/homepage-v5-install.sh @@ -123,7 +123,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/homer-v5-install.sh b/install/homer-v5-install.sh index 2f3bd73676..1bea03130b 100644 --- a/install/homer-v5-install.sh +++ b/install/homer-v5-install.sh @@ -112,7 +112,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/hyperion-v5-install.sh b/install/hyperion-v5-install.sh index e3af572dbe..5acf9f9328 100644 --- a/install/hyperion-v5-install.sh +++ b/install/hyperion-v5-install.sh @@ -97,7 +97,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/influxdb-v5-install.sh b/install/influxdb-v5-install.sh index de01f69fd3..85a9ec8deb 100644 --- a/install/influxdb-v5-install.sh +++ b/install/influxdb-v5-install.sh @@ -126,7 +126,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/iobroker-v5-install.sh b/install/iobroker-v5-install.sh index 2905243b9e..c4539140a9 100644 --- a/install/iobroker-v5-install.sh +++ b/install/iobroker-v5-install.sh @@ -91,7 +91,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/jellyfin-v5-install.sh b/install/jellyfin-v5-install.sh index dd56b60e29..6da83f157d 100644 --- a/install/jellyfin-v5-install.sh +++ b/install/jellyfin-v5-install.sh @@ -131,7 +131,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/k0s-v5-install.sh b/install/k0s-v5-install.sh index 5b58883b29..315983d156 100644 --- a/install/k0s-v5-install.sh +++ b/install/k0s-v5-install.sh @@ -107,7 +107,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/kavita-v5-install.sh b/install/kavita-v5-install.sh index 2f5fec1831..f197b02b78 100644 --- a/install/kavita-v5-install.sh +++ b/install/kavita-v5-install.sh @@ -113,7 +113,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/keycloak-v5-install.sh b/install/keycloak-v5-install.sh index 44addad184..3f57e98c7d 100644 --- a/install/keycloak-v5-install.sh +++ b/install/keycloak-v5-install.sh @@ -110,7 +110,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/lidarr-v5-install.sh b/install/lidarr-v5-install.sh index aa4651aa99..d6808aff90 100644 --- a/install/lidarr-v5-install.sh +++ b/install/lidarr-v5-install.sh @@ -117,7 +117,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/magicmirror-v5-install.sh b/install/magicmirror-v5-install.sh index 7fad5c7083..62e0377c70 100644 --- a/install/magicmirror-v5-install.sh +++ b/install/magicmirror-v5-install.sh @@ -212,7 +212,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/mariadb-v5-install.sh b/install/mariadb-v5-install.sh index 441dc6e525..f00046a7d1 100644 --- a/install/mariadb-v5-install.sh +++ b/install/mariadb-v5-install.sh @@ -108,7 +108,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/meshcentral-v5-install.sh b/install/meshcentral-v5-install.sh index b2c0027b6c..458c458e35 100644 --- a/install/meshcentral-v5-install.sh +++ b/install/meshcentral-v5-install.sh @@ -102,7 +102,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/motioneye-v5-install.sh b/install/motioneye-v5-install.sh index 298e719c3b..e93a6a46df 100644 --- a/install/motioneye-v5-install.sh +++ b/install/motioneye-v5-install.sh @@ -121,7 +121,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/mqtt-v5-install.sh b/install/mqtt-v5-install.sh index ea8d8928ab..08cd9055dc 100644 --- a/install/mqtt-v5-install.sh +++ b/install/mqtt-v5-install.sh @@ -98,7 +98,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/n8n-v5-install.sh b/install/n8n-v5-install.sh index d3a6f6d443..8420727658 100644 --- a/install/n8n-v5-install.sh +++ b/install/n8n-v5-install.sh @@ -113,7 +113,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/navidrome-v5-install.sh b/install/navidrome-v5-install.sh index 1fec13d116..5f0b0f4549 100644 --- a/install/navidrome-v5-install.sh +++ b/install/navidrome-v5-install.sh @@ -141,7 +141,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/nextcloudpi-v5-install.sh b/install/nextcloudpi-v5-install.sh index ef24f03c17..47ce30607f 100644 --- a/install/nextcloudpi-v5-install.sh +++ b/install/nextcloudpi-v5-install.sh @@ -93,7 +93,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/nginxproxymanager-v5-install.sh b/install/nginxproxymanager-v5-install.sh index 2bab1ba75e..a128a72925 100644 --- a/install/nginxproxymanager-v5-install.sh +++ b/install/nginxproxymanager-v5-install.sh @@ -245,7 +245,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/nocodb-v5-install.sh b/install/nocodb-v5-install.sh index f282e40ccb..6f92515c3d 100644 --- a/install/nocodb-v5-install.sh +++ b/install/nocodb-v5-install.sh @@ -120,7 +120,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/node-red-v5-install.sh b/install/node-red-v5-install.sh index b45683432b..f114216b9a 100644 --- a/install/node-red-v5-install.sh +++ b/install/node-red-v5-install.sh @@ -123,7 +123,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/omada-v5-install.sh b/install/omada-v5-install.sh index 14cbcbe9b5..347eec828d 100644 --- a/install/omada-v5-install.sh +++ b/install/omada-v5-install.sh @@ -97,7 +97,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/omv-v5-install.sh b/install/omv-v5-install.sh index cfdd01736e..3a72d38522 100644 --- a/install/omv-v5-install.sh +++ b/install/omv-v5-install.sh @@ -109,7 +109,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/openhab-v5-install.sh b/install/openhab-v5-install.sh index e81749285a..cf21a73347 100644 --- a/install/openhab-v5-install.sh +++ b/install/openhab-v5-install.sh @@ -108,7 +108,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/paperless-ngx-v5-install.sh b/install/paperless-ngx-v5-install.sh index c32d53629a..e60e617ac9 100644 --- a/install/paperless-ngx-v5-install.sh +++ b/install/paperless-ngx-v5-install.sh @@ -262,7 +262,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/photoprism-v5-install.sh b/install/photoprism-v5-install.sh index 4a74f1e255..c61d4dec64 100644 --- a/install/photoprism-v5-install.sh +++ b/install/photoprism-v5-install.sh @@ -181,7 +181,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/pihole-v5-install.sh b/install/pihole-v5-install.sh index a9926604a2..2163740253 100644 --- a/install/pihole-v5-install.sh +++ b/install/pihole-v5-install.sh @@ -114,7 +114,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/plex-v5-install.sh b/install/plex-v5-install.sh index dbf48fdf2a..2fa7638d86 100644 --- a/install/plex-v5-install.sh +++ b/install/plex-v5-install.sh @@ -111,7 +111,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/podman-homeassistant-v5-install.sh b/install/podman-homeassistant-v5-install.sh index f14550f6d0..b54fdd82db 100644 --- a/install/podman-homeassistant-v5-install.sh +++ b/install/podman-homeassistant-v5-install.sh @@ -113,7 +113,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/podman-v5-install.sh b/install/podman-v5-install.sh index d10172513f..952fa9c3a3 100644 --- a/install/podman-v5-install.sh +++ b/install/podman-v5-install.sh @@ -92,7 +92,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/postgresql-v5-install.sh b/install/postgresql-v5-install.sh index 13933399f1..897fb1c16f 100644 --- a/install/postgresql-v5-install.sh +++ b/install/postgresql-v5-install.sh @@ -215,7 +215,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/prometheus-v5-install.sh b/install/prometheus-v5-install.sh index 82e1c7d787..c3ebcdfff9 100644 --- a/install/prometheus-v5-install.sh +++ b/install/prometheus-v5-install.sh @@ -122,7 +122,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/prowlarr-v5-install.sh b/install/prowlarr-v5-install.sh index 8690a803a7..dc9fd91840 100644 --- a/install/prowlarr-v5-install.sh +++ b/install/prowlarr-v5-install.sh @@ -115,7 +115,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/radarr-v5-install.sh b/install/radarr-v5-install.sh index cca7886822..3e2b2c514c 100644 --- a/install/radarr-v5-install.sh +++ b/install/radarr-v5-install.sh @@ -115,7 +115,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/readarr-v5-install.sh b/install/readarr-v5-install.sh index 70fae8dba3..5df38948ba 100644 --- a/install/readarr-v5-install.sh +++ b/install/readarr-v5-install.sh @@ -115,7 +115,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/sabnzbd-v5-install.sh b/install/sabnzbd-v5-install.sh index 2684a4612c..15384772ce 100644 --- a/install/sabnzbd-v5-install.sh +++ b/install/sabnzbd-v5-install.sh @@ -120,7 +120,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/scrypted-v5-install.sh b/install/scrypted-v5-install.sh index 00c6c76bb9..b557a38fd2 100644 --- a/install/scrypted-v5-install.sh +++ b/install/scrypted-v5-install.sh @@ -180,7 +180,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/shinobi-v5-install.sh b/install/shinobi-v5-install.sh index 9f128f6d23..f36b68c531 100644 --- a/install/shinobi-v5-install.sh +++ b/install/shinobi-v5-install.sh @@ -149,7 +149,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/sonarr-v5-install.sh b/install/sonarr-v5-install.sh index 1e1ee7a3cc..697514d765 100644 --- a/install/sonarr-v5-install.sh +++ b/install/sonarr-v5-install.sh @@ -96,7 +96,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/syncthing-v5-install.sh b/install/syncthing-v5-install.sh index ddfc4e9a8d..b7f63b24c9 100644 --- a/install/syncthing-v5-install.sh +++ b/install/syncthing-v5-install.sh @@ -99,7 +99,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/tdarr-v5-install.sh b/install/tdarr-v5-install.sh index 2ee6e6c58d..8e6f50f00a 100644 --- a/install/tdarr-v5-install.sh +++ b/install/tdarr-v5-install.sh @@ -142,7 +142,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/technitiumdns-v5-install.sh b/install/technitiumdns-v5-install.sh index 01679c6798..fb05208794 100644 --- a/install/technitiumdns-v5-install.sh +++ b/install/technitiumdns-v5-install.sh @@ -94,7 +94,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/transmission-v5-install.sh b/install/transmission-v5-install.sh index 8616965a43..2e73fc176a 100644 --- a/install/transmission-v5-install.sh +++ b/install/transmission-v5-install.sh @@ -94,7 +94,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/trilium-v5-install.sh b/install/trilium-v5-install.sh index 2fc7f47746..3d6f2598ae 100644 --- a/install/trilium-v5-install.sh +++ b/install/trilium-v5-install.sh @@ -116,7 +116,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/ubuntu-v5-install.sh b/install/ubuntu-v5-install.sh index 71d85b05d8..b48ba885aa 100644 --- a/install/ubuntu-v5-install.sh +++ b/install/ubuntu-v5-install.sh @@ -87,7 +87,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/umbrel-v5-install.sh b/install/umbrel-v5-install.sh index 43bc73438d..b447635cbb 100644 --- a/install/umbrel-v5-install.sh +++ b/install/umbrel-v5-install.sh @@ -105,7 +105,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/unifi-v5-install.sh b/install/unifi-v5-install.sh index 5691b0d1eb..b75f3bba43 100644 --- a/install/unifi-v5-install.sh +++ b/install/unifi-v5-install.sh @@ -100,7 +100,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/uptimekuma-v5-install.sh b/install/uptimekuma-v5-install.sh index 8121c67b7c..9148e80efb 100644 --- a/install/uptimekuma-v5-install.sh +++ b/install/uptimekuma-v5-install.sh @@ -120,7 +120,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/vaultwarden-v5-install.sh b/install/vaultwarden-v5-install.sh index 8ae8076387..6cc0f029e3 100644 --- a/install/vaultwarden-v5-install.sh +++ b/install/vaultwarden-v5-install.sh @@ -177,7 +177,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/whisparr-v5-install.sh b/install/whisparr-v5-install.sh index 351d1d6062..2ffa248d86 100644 --- a/install/whisparr-v5-install.sh +++ b/install/whisparr-v5-install.sh @@ -115,7 +115,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/whoogle-v5-install.sh b/install/whoogle-v5-install.sh index 8e1b6d4820..e9d8f72d2e 100644 --- a/install/whoogle-v5-install.sh +++ b/install/whoogle-v5-install.sh @@ -109,7 +109,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/wikijs-v5-install.sh b/install/wikijs-v5-install.sh index de85bdf093..5defd0dd00 100644 --- a/install/wikijs-v5-install.sh +++ b/install/wikijs-v5-install.sh @@ -137,7 +137,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/wireguard-v5-install.sh b/install/wireguard-v5-install.sh index c3860c5b62..6e5d846401 100644 --- a/install/wireguard-v5-install.sh +++ b/install/wireguard-v5-install.sh @@ -109,7 +109,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/yunohost-v5-install.sh b/install/yunohost-v5-install.sh index d97a204a5e..769e07be7c 100644 --- a/install/yunohost-v5-install.sh +++ b/install/yunohost-v5-install.sh @@ -96,7 +96,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/zigbee2mqtt-v5-install.sh b/install/zigbee2mqtt-v5-install.sh index 131e0654f9..7f7780038c 100644 --- a/install/zigbee2mqtt-v5-install.sh +++ b/install/zigbee2mqtt-v5-install.sh @@ -136,7 +136,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE) diff --git a/install/zwave-js-ui-v5-install.sh b/install/zwave-js-ui-v5-install.sh index 293d484cf2..973ef4c25b 100644 --- a/install/zwave-js-ui-v5-install.sh +++ b/install/zwave-js-ui-v5-install.sh @@ -112,7 +112,7 @@ echo "export TERM='xterm-256color'" >>/root/.bashrc if ! getent shadow root | grep -q "^root:[^\!*]"; then msg_info "Customizing Container" OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2) -if [ "$OS" == "debian" ]; then rm /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi +if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi touch ~/.hushlogin GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" mkdir -p $(dirname $GETTY_OVERRIDE)