1996-07-19 23:00:43 +02:00
|
|
|
#!/bin/sh
|
|
|
|
if [ $2 != "POST-INSTALL" ]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
if [ -e ${PKG_PREFIX}/etc/sudoers ]; then
|
|
|
|
echo "Will not overwrite existing ${PKG_PREFIX}/etc/sudoers file."
|
|
|
|
else
|
2005-12-17 23:12:41 +01:00
|
|
|
cp -p ${PKG_PREFIX}/etc/sudoers.default ${PKG_PREFIX}/etc/sudoers
|
2001-11-21 03:09:13 +01:00
|
|
|
chmod 440 ${PKG_PREFIX}/etc/sudoers
|
1996-07-19 23:00:43 +02:00
|
|
|
fi
|
2007-07-21 05:15:13 +02:00
|
|
|
if [ -e ${PKG_PREFIX}/etc/pam.d/sudo ]; then
|
|
|
|
echo "Will not overwrite existing ${PKG_PREFIX}/etc/pam.d/sudo file."
|
|
|
|
else
|
|
|
|
cp -p ${PKG_PREFIX}/etc/pam.d/sudo.default ${PKG_PREFIX}/etc/pam.d/sudo
|
|
|
|
fi
|