mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
12015b11c6
Kris (bento (noh! pointyhat)) reported it PR: ports/58387
11 lines
280 B
Bash
11 lines
280 B
Bash
#!/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
|
|
cp -p ${PKG_PREFIX}/etc/sudoers.sample ${PKG_PREFIX}/etc/sudoers
|
|
chmod 440 ${PKG_PREFIX}/etc/sudoers
|
|
fi
|