use PCT_OSTYPE instead of redefining OS (#1018)
This commit is contained in:
parent
351161bc83
commit
d54683396e
79 changed files with 81 additions and 159 deletions
install
adguard-v5-install.shaudiobookshelf-v5-install.shautobrr-v5-install.shblocky-v5-install.shcasaos-v5-install.shchangedetection-v5-install.shcronicle-v5-install.shdaemonsync-v5-install.shdashy-v5-install.shdebian-v5-install.shdeconz-v5-install.shdeluge-v5-install.shdocker-v5-install.shemby-v5-install.shemqx-v5-install.shesphome-v5-install.shgrafana-v5-install.shgrocy-v5-install.shheimdalldashboard-v5-install.shhomeassistant-core-v5-install.shhomeassistant-v5-install.shhomebridge-v5-install.shhomepage-v5-install.shhomer-v5-install.shhyperion-v5-install.shinfluxdb-v5-install.shiobroker-v5-install.shjellyfin-v5-install.shk0s-v5-install.shkavita-v5-install.shkeycloak-v5-install.shlidarr-v5-install.shmagicmirror-v5-install.shmariadb-v5-install.shmeshcentral-v5-install.shmotioneye-v5-install.shmqtt-v5-install.shn8n-v5-install.shnavidrome-v5-install.shnextcloudpi-v5-install.shnginxproxymanager-v5-install.shnocodb-v5-install.shnode-red-v5-install.shomada-v5-install.shomv-v5-install.shopenhab-v5-install.shpaperless-ngx-v5-install.shphotoprism-v5-install.shpihole-v5-install.shplex-v5-install.shpodman-homeassistant-v5-install.shpodman-v5-install.shpostgresql-v5-install.shprometheus-v5-install.shprowlarr-v5-install.shradarr-v5-install.shreadarr-v5-install.shsabnzbd-v5-install.shscrypted-v5-install.shshinobi-v5-install.shsonarr-v5-install.shsyncthing-v5-install.shtdarr-v5-install.shtechnitiumdns-v5-install.shtransmission-v5-install.shtrilium-v5-install.shubuntu-v5-install.shumbrel-v5-install.shunifi-v5-install.shuptimekuma-v5-install.shvaultwarden-v5-install.shwhisparr-v5-install.shwhoogle-v5-install.shwikijs-v5-install.shwireguard-v5-install.shyunohost-v5-install.shzigbee2mqtt-v5-install.shzwave-js-ui-v5-install.sh
misc
|
@ -95,8 +95,7 @@ msg_ok "Installed AdGuard Home"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -93,8 +93,7 @@ msg_ok "Installed audiobookshelf"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -114,8 +114,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -347,8 +347,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -103,8 +103,7 @@ msg_ok "Installed CasaOS"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -107,8 +107,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -113,8 +113,7 @@ msg_ok "Installed Cronicle Primary Server"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -92,8 +92,7 @@ msg_ok "Installed Daemon Sync Server"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -123,8 +123,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -85,8 +85,7 @@ msg_ok "Installed Dependencies"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -116,8 +116,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -130,8 +130,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -147,8 +147,7 @@ fi
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -106,8 +106,7 @@ msg_ok "Installed Emby"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -91,8 +91,7 @@ msg_ok "Installed EMQX"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -112,8 +112,7 @@ msg_ok "Installed ESPHome Dashboard"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -99,8 +99,7 @@ msg_ok "Installed Grafana"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -129,8 +129,7 @@ msg_ok "Installed grocy"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -123,8 +123,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -165,8 +165,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -150,8 +150,7 @@ msg_ok "Installed Home Assistant $CORE_LATEST_VERSION"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -102,8 +102,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -122,8 +122,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -111,8 +111,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -96,8 +96,7 @@ msg_ok "Installed Hyperion"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -125,8 +125,7 @@ fi
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -90,8 +90,7 @@ msg_ok "Installed ioBroker"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -130,8 +130,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -106,8 +106,7 @@ fi
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -112,8 +112,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -109,8 +109,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -116,8 +116,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -210,9 +210,8 @@ msg_ok "Created Service"
|
|||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
msg_info "Customizing Container"
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -107,8 +107,7 @@ fi
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -101,8 +101,7 @@ msg_ok "Installed MeshCentral"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -120,8 +120,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -97,8 +97,7 @@ msg_ok "Installed Mosquitto MQTT Broker"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -112,8 +112,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -140,8 +140,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -92,8 +92,7 @@ msg_ok "Installed NextCloudPi"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -244,8 +244,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -119,8 +119,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -122,8 +122,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -96,8 +96,7 @@ msg_ok "Installed Omada Controller"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -108,8 +108,7 @@ msg_ok "Installed OpenMediaVault"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -107,8 +107,7 @@ msg_ok "Installed openHAB"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -260,9 +260,8 @@ msg_ok "Created Services"
|
|||
|
||||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
msg_info "Customizing Container"
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -180,8 +180,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -113,8 +113,7 @@ msg_ok "Installed Pi-hole"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -110,8 +110,7 @@ msg_ok "Installed Plex Media Server"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -112,8 +112,7 @@ msg_ok "Installed Home Assistant"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -91,8 +91,7 @@ msg_ok "Installed Podman"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -214,8 +214,7 @@ fi
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -121,8 +121,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -114,8 +114,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -114,8 +114,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -114,8 +114,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -119,8 +119,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -179,8 +179,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -148,8 +148,7 @@ msg_ok "Installed Shinobi"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -95,8 +95,7 @@ msg_ok "Installed Sonarr"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -98,8 +98,7 @@ msg_ok "Installed Syncthing"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -141,8 +141,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -93,8 +93,7 @@ msg_ok "Installed Technitium DNS"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -93,8 +93,7 @@ msg_ok "Installed Transmission"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -115,8 +115,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -86,8 +86,7 @@ msg_ok "Installed Dependencies"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -104,8 +104,7 @@ msg_ok "Installed Umbrel"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -99,8 +99,7 @@ msg_ok "Installed UniFi Network Application"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -119,8 +119,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -176,8 +176,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -114,8 +114,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -108,8 +108,7 @@ msg_ok "Installed Whoogle"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -136,8 +136,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -108,8 +108,7 @@ msg_ok "Installed WireGuard"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -95,8 +95,7 @@ msg_ok "Installed YunoHost"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -135,8 +135,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -111,8 +111,7 @@ msg_ok "Created Service"
|
|||
echo "export TERM='xterm-256color'" >>/root/.bashrc
|
||||
if ! getent shadow root | grep -q "^root:[^\!*]"; then
|
||||
msg_info "Customizing Container"
|
||||
OS=$(grep "^ID=" /etc/os-release | cut -d'=' -f2)
|
||||
if [ "$OS" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
if [ "$PCT_OSTYPE" == "debian" ]; then rm -rf /etc/motd /etc/update-motd.d/10-uname; else chmod -x /etc/update-motd.d/*; fi
|
||||
touch ~/.hushlogin
|
||||
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf"
|
||||
mkdir -p $(dirname $GETTY_OVERRIDE)
|
||||
|
|
|
@ -40,7 +40,7 @@ function update_container() {
|
|||
os=`awk '/^ostype/' temp | cut -d' ' -f2`
|
||||
if [ "$os" == "alpine" ]; then
|
||||
pct exec $container -- ash -c "apk update && apk upgrade"
|
||||
elif [ "$os" == "ubuntu" ] || [ "$os" == "debian" ] || [ "$os" == "devuan" ]; then
|
||||
elif [ "$os" == "ubuntu" ] || [ "$PCT_OSTYPE" == "debian" ] || [ "$os" == "devuan" ]; then
|
||||
pct exec $container -- bash -c "apt-get update && apt-get -y upgrade"
|
||||
elif [ "$os" == "fedora" ] || [ "$os" == "rocky" ] || [ "$os" == "centos" ] || [ "$os" == "alma" ]; then
|
||||
pct exec $container -- bash -c "dnf -y update && dnf -y upgrade"
|
||||
|
|
Loading…
Reference in a new issue