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