From ba8564b3483ef5f5e166768ac72ffbe7e6e0a2cd Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 19 Sep 2019 15:32:15 -0400 Subject: [PATCH 1/2] small change to handle non-interactive shells --- iso/installer/install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iso/installer/install.sh b/iso/installer/install.sh index 1039657f..5fe07c6e 100755 --- a/iso/installer/install.sh +++ b/iso/installer/install.sh @@ -170,6 +170,7 @@ myCRONJOBS=" # Check for updated packages every sunday, upgrade and reboot 27 16 * * 0 root apt-fast autoclean -y && apt-fast autoremove -y && apt-fast update -y && apt-fast upgrade -y && sleep 10 && reboot " +mySHELLCHECK='[[ $- == *i* ]] || return' myROOTPROMPT='PS1="\[\033[38;5;8m\][\[$(tput sgr0)\]\[\033[38;5;1m\]\u\[$(tput sgr0)\]\[\033[38;5;6m\]@\[$(tput sgr0)\]\[\033[38;5;4m\]\h\[$(tput sgr0)\]\[\033[38;5;6m\]:\[$(tput sgr0)\]\[\033[38;5;5m\]\w\[$(tput sgr0)\]\[\033[38;5;8m\]]\[$(tput sgr0)\]\[\033[38;5;1m\]\\$\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]"' myUSERPROMPT='PS1="\[\033[38;5;8m\][\[$(tput sgr0)\]\[\033[38;5;2m\]\u\[$(tput sgr0)\]\[\033[38;5;6m\]@\[$(tput sgr0)\]\[\033[38;5;4m\]\h\[$(tput sgr0)\]\[\033[38;5;6m\]:\[$(tput sgr0)\]\[\033[38;5;5m\]\w\[$(tput sgr0)\]\[\033[38;5;8m\]]\[$(tput sgr0)\]\[\033[38;5;2m\]\\$\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]"' myROOTCOLORS="export LS_OPTIONS='--color=auto' @@ -835,6 +836,7 @@ sed -i 's#After=.*#After=systemd-tmpfiles-setup.service console-screen.service k # Let's enable a color prompt and add /opt/tpot/bin to path fuBANNER "Setup prompt" tee -a /root/.bashrc < Date: Tue, 24 Sep 2019 10:00:31 -0400 Subject: [PATCH 2/2] testing change in user login --- iso/installer/install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/iso/installer/install.sh b/iso/installer/install.sh index 5fe07c6e..6e9d00d5 100755 --- a/iso/installer/install.sh +++ b/iso/installer/install.sh @@ -844,6 +844,7 @@ EOF for i in $(ls -d /home/*/) do tee -a $i.bashrc <