mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-23 00:54:42 +00:00
core: suppress MOTD for non-interactive shells (#14638)
This commit is contained in:
committed by
GitHub
parent
83859e2219
commit
2fa9ae03a1
@@ -183,7 +183,8 @@ motd_ssh() {
|
||||
|
||||
PROFILE_FILE="/etc/profile.d/00_lxc-details.sh"
|
||||
|
||||
echo "echo -e \"\"" >"$PROFILE_FILE"
|
||||
echo "[ -t 1 ] || return 0" >"$PROFILE_FILE"
|
||||
echo "echo -e \"\"" >>"$PROFILE_FILE"
|
||||
echo -e "echo -e \"${BOLD}${APPLICATION} LXC Container${CL}"\" >>"$PROFILE_FILE"
|
||||
echo -e "echo -e \"${TAB}${GATEWAY}${YW} Provided by: ${GN}community-scripts ORG ${YW}| GitHub: ${GN}https://github.com/community-scripts/ProxmoxVE${CL}\"" >>"$PROFILE_FILE"
|
||||
echo "echo \"\"" >>"$PROFILE_FILE"
|
||||
|
||||
Reference in New Issue
Block a user