aboutsummaryrefslogtreecommitdiffstats
path: root/security/sudo/pkg-install
blob: 95bd56127f0dae257e778b074b4416c18748697b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/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 ${EXAMPLESDIR}/sudoers ${PKG_PREFIX}/etc/sudoers
  chmod 440 ${PKG_PREFIX}/etc/sudoers
fi