Skip to content

Commit

Permalink
NAS-106539 / 12.0 / Copy over profile(4) localbase/etc to reflect wit…
Browse files Browse the repository at this point in the history
…h upstream changes (truenas#7110)

This commit adds changes to copy over profile(4) to localbase/etc as bash reads the login initialization changes from there now with recent changes introduced to freebsd upstream last year ( https://forums.freebsd.org/threads/what-happened-to-etc-profile.78406/ ).
  • Loading branch information
sonicaj authored Jul 6, 2021
1 parent 548d340 commit 241815e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/freenas/etc/ix.rc.d/ix-etc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ copy_templates()
if [ "$nfile" = "/etc/login.conf" ] ; then
cap_mkdb /etc/login.conf
fi

# We copy profile file to /usr/local/etc to reflect with upstream changes
# https://forums.freebsd.org/threads/what-happened-to-etc-profile.78406/
if [ "$nfile" = "/etc/profile" -a -f "$nfile" ]; then
cp "$nfile" "/usr/local$nfile"
fi
done
}

Expand Down

0 comments on commit 241815e

Please sign in to comment.