mirror of https://github.com/tteck/Proxmox.git
use PCT_OSTYPE instead of redefining OS (#1018)
This commit is contained in:
parent
351161bc83
commit
d54683396e
|
@ -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 New Issue