Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
fixed perms, added postinst messages
Browse files Browse the repository at this point in the history
  • Loading branch information
lnagel committed Oct 3, 2009
1 parent d360632 commit a02ef71
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app-backup/nagios-backuppc/Manifest
@@ -1,4 +1,4 @@
DIST check_backuppc-1.1.0.tar.gz 11036 RMD160 88f45df6acd920df66b10be6fc74156c34644cc3 SHA1 11766f925ceb72af6d0ab666d69c6082721a760c SHA256 f38675b67459e8b6ae616bca23646ec645f8c88ee34d4c53ec9e06f61b9559ca
EBUILD nagios-backuppc-1.1.0.ebuild 869 RMD160 2d971aab25c0f82a3ffe0a3efd5e73764379e009 SHA1 c046423d6544fd26c8b6baf82bfb199ba90b21d5 SHA256 67f06d438b387aa7c8200ee44bd214f5b7215552794345232b92c977b7f0fce6
EBUILD nagios-backuppc-1.1.0.ebuild 1282 RMD160 83ffa47a6693c0bed47bbeabbfbccc82f7ea3d80 SHA1 3ea20b9bebea3bbb9ae2edb36a67a75e1b21e44f SHA256 3b2a3870845b13c1a2e12a43309ac96ddbd57c3d2cc2dd5b8652726b92770ef4
MISC ChangeLog 0 RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 SHA1 da39a3ee5e6b4b0d3255bfef95601890afd80709 SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
MISC metadata.xml 253 RMD160 c0318abe33b31aa5d6279d10fc83c28cc6dd09c5 SHA1 605137e0dd74096a7c28e073f5f26df12aa7eb0f SHA256 3dc2ada999ee9ccc3016e9ccdd54c36b84eff8d7533b76bb7dda62d661a187ea
13 changes: 12 additions & 1 deletion app-backup/nagios-backuppc/nagios-backuppc-1.1.0.ebuild
Expand Up @@ -47,7 +47,18 @@ src_test() {
src_install() {
doman check_backuppc.8

insopts -m 0755 -g nagios
insopts -m 0750 -g nagios
insinto /usr/lib/nagios/plugins
doins check_backuppc
}

pkg_postinst() {
elog "You should probaby add backuppc to the group nagios:"
elog "# gpasswd -a backuppc nagios"
elog ""
elog "Add to /etc/nagios/nrpe.cfg:"
elog " command[check_backuppc]=/usr/bin/sudo /bin/su -c /usr/lib/nagios/plugins/check_backuppc backuppc"
elog ""
elog "Add to sudoers using visudo:"
elog " nagios ALL=(ALL) NOPASSWD: /bin/su -c /usr/lib/nagios/plugins/check_backuppc backuppc"
}

0 comments on commit a02ef71

Please sign in to comment.