summaryrefslogtreecommitdiff
blob: 4d350d569f5a2c64576b36b1e39ee776cf4c57ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[[ -o rcs ]] || return 0

[[ -e "/etc/profile.env" ]] && source /etc/profile.env

#077 would be more secure, but 022 is generally quite realistic
umask 022

if [[ $(/usr/bin/whoami) == 'root' ]]
then
	export PATH="/bin:/sbin:/usr/bin:/usr/sbin:${ROOTPATH}"
else
	export PATH="/bin:/usr/bin:${PATH}"
fi
unset ROOTPATH