2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 09:57:41 +00:00

Make sudoersdir relative to PKG_INSTALL_ROOT for Solaris.

This commit is contained in:
Todd C. Miller 2012-03-13 17:38:03 -04:00
parent 7e11069932
commit ca0d9c4be9

View File

@ -234,7 +234,11 @@ still allow people to get their work done."
%post [!rpm,deb]
# Don't overwrite an existing sudoers file
%if [solaris]
sudoersdir=${PKG_INSTALL_ROOT}%{sudoersdir}
%else
sudoersdir=%{sudoersdir}
%endif
if test ! -r $sudoersdir/sudoers; then
cp $sudoersdir/sudoers.dist $sudoersdir/sudoers
chmod %{sudoers_mode} $sudoersdir/sudoers