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 26 16:09:46 UTC 2012
[aur-mirror.git]
/
dnrd
/
dnrd.install
blob
1961ed870414d7ca8e0fe23b73ee1217d33cb642
1
post_install() {
2
if [ ! `grep dnrd /etc/group` ]; then
3
groupadd dnrd &>/dev/null;
4
fi
5
6
id dnrd &>/dev/null || \
7
useradd -g dnrd -d /dev/null dnrd
8
}
9
10
post_upgrade() {
11
post_install $1
12
}
13
14
pre_remove() {
15
userdel dnrd &> /dev/null
16
groupdel dnrd &> /dev/null
17
}
18
19
op=$1
20
shift
21
22
$op $*