aboutsummaryrefslogtreecommitdiff
path: root/core/baselayout/files
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2019-12-10 14:33:16 +0300
committerCem Keylan <cem@ckyln.com>2019-12-10 14:33:16 +0300
commit0bbe4c12108e45f90a344a9ac60f1b27f3363e19 (patch)
tree16cfbddf8664ce3310d2a9c87439bf89caeb995b /core/baselayout/files
parentcb6cce5732a6e4b03160c409294d3c074d9838e9 (diff)
downloadrepository-0bbe4c12108e45f90a344a9ac60f1b27f3363e19.tar.gz
reduced path in profile
Diffstat (limited to 'core/baselayout/files')
-rw-r--r--core/baselayout/files/profile19
1 files changed, 10 insertions, 9 deletions
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