|
|
@ -110,15 +110,14 @@ $STD update-rc.d cronicled defaults |
|
|
|
msg_ok "Installed Cronicle Primary Server" |
|
|
|
msg_ok "Installed Cronicle Primary Server" |
|
|
|
|
|
|
|
|
|
|
|
echo "export TERM='xterm-256color'" >>/root/.bashrc |
|
|
|
echo "export TERM='xterm-256color'" >>/root/.bashrc |
|
|
|
|
|
|
|
echo -e "\n${APPLICATION} LXC provided by https://tteck.github.io/Proxmox/\n" > /etc/motd |
|
|
|
|
|
|
|
chmod -x /etc/update-motd.d/* |
|
|
|
if ! getent shadow root | grep -q "^root:[^\!*]"; then |
|
|
|
if ! getent shadow root | grep -q "^root:[^\!*]"; then |
|
|
|
msg_info "Customizing Container" |
|
|
|
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" |
|
|
|
GETTY_OVERRIDE="/etc/systemd/system/container-getty@1.service.d/override.conf" |
|
|
|
mkdir -p $(dirname $GETTY_OVERRIDE) |
|
|
|
mkdir -p $(dirname $GETTY_OVERRIDE) |
|
|
|
cat <<EOF >$GETTY_OVERRIDE |
|
|
|
cat <<EOF >$GETTY_OVERRIDE |
|
|
|
[Service] |
|
|
|
[Service] |
|
|
|
ExecStart= |
|
|
|
|
|
|
|
ExecStart=-/sbin/agetty --autologin root --noclear --keep-baud tty%I 115200,38400,9600 \$TERM |
|
|
|
ExecStart=-/sbin/agetty --autologin root --noclear --keep-baud tty%I 115200,38400,9600 \$TERM |
|
|
|
EOF |
|
|
|
EOF |
|
|
|
systemctl daemon-reload |
|
|
|
systemctl daemon-reload |
|
|
|