diff options
author | Christian Rebischke | 2017-02-26 00:01:57 +0100 |
---|---|---|
committer | Christian Rebischke | 2017-02-26 00:01:57 +0100 |
commit | 6bb3a1879619af882b0eced4f823186f808663ce (patch) | |
tree | b57cd31caa8b5caa24e847f050f702e580c64a7b /inetsim.install | |
parent | c2c6615a0042b2fc980ff2c5a53e238d209b7b6b (diff) | |
download | aur-6bb3a1879619af882b0eced4f823186f808663ce.tar.gz |
new version
Diffstat (limited to 'inetsim.install')
-rw-r--r-- | inetsim.install | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/inetsim.install b/inetsim.install index a4ef407085ec..1c3c14a47dec 100644 --- a/inetsim.install +++ b/inetsim.install @@ -1,7 +1,7 @@ post_install() { # add inetsim group - if [ ! `grep inetsim /etc/group` ]; then - groupadd -g 16 inetsim &>/dev/null + if [ ! `getent passwd inetsim` ]; then + groupadd -g 101 inetsim &>/dev/null fi # run inetsim setup script @@ -11,6 +11,9 @@ post_install() { } post_upgrade() { - post_install $1 + if (( $(vercmp $2 1.2.6-4) <= 0 )); then + groupmod -g 101 inetsim + chgrp -R inetsim /opt/inetsim + fi } |