Source only readable profiles

Newer Ubuntu versions put files only readable by root into
/etc/profile.d
This commit is contained in:
Peter J. Holzer 2022-12-22 16:31:21 +01:00
parent a59264e149
commit 6cb71fa6cc
1 changed files with 4 additions and 1 deletions

View File

@ -251,6 +251,9 @@ if [ -d /etc/profile.d ]
then
for i in /etc/profile.d/*.sh
do
if [ -r $i ]
then
. $i
fi
done
fi