repo.or.cz
/
aur-mirror.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git]
/
nagios-nsca
/
nagios-nsca.install
blob
da82cddc6f67e2032c9c4b3621f6460489105c5d
1
post_install() {
2
if [ -z "`getent group nsca`" ]; then
3
groupadd -g 32 nsca
4
fi
5
if [ -z "`getent passwd nsca`" ]; then
6
useradd -u 32 -g nsca -c "Nagios NSCA" -d /dev/null -s /bin/false nsca
7
fi
8
}
9
10
post_upgrade() {
11
post_install $1
12
}
13
14
pre_remove() {
15
userdel nsca &> /dev/null
16
groupdel nsca &> /dev/null
17
}
18
19
op=$1
20
shift
21
22
$op $*