From 0bbe4c12108e45f90a344a9ac60f1b27f3363e19 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Tue, 10 Dec 2019 14:33:16 +0300 Subject: reduced path in profile --- core/baselayout/files/profile | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'core/baselayout/files') diff --git a/core/baselayout/files/profile b/core/baselayout/files/profile index 8e5fcd75..a1d4d371 100644 --- a/core/baselayout/files/profile +++ b/core/baselayout/files/profile @@ -1,16 +1,17 @@ +# # /etc/profile # -# System wide environment and startup programs. -# Set default path (/usr/sbin:/sbin:/bin included for non-KISS Linux chroots). -export PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin +PATH=/usr/bin +MANPATH=/usr/share/man +export PATH MANPATH -# Set default umask. umask 022 # Load profiles from /etc/profile.d -for file in /etc/profile.d/*.sh; do - [ -r "$file" ] && . "$file" -done - -unset file +if [ -d /etc/profile.d/ ]; then + for file in /etc/profile.d/*.sh; do + [ -r "$file" ] && . "$file" + done + unset file +fi -- cgit v1.2.3