diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/vlock/vlock.install |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/vlock/vlock.install')
-rw-r--r-- | community/vlock/vlock.install | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/community/vlock/vlock.install b/community/vlock/vlock.install new file mode 100644 index 000000000..4cf592b35 --- /dev/null +++ b/community/vlock/vlock.install @@ -0,0 +1,18 @@ +post_install() { + echo -n 'Adding vlock group... ' + groupadd -g 129 vlock && echo 'done.' +} + +post_upgrade() { + cut -d: -f1 /etc/group | grep ^vlock$ >/dev/null + if [ $? == 1 ] ; then + post_install + fi +} + +post_remove() { + echo -n 'Removing vlock group... ' + groupdel vlock && echo 'done.' +} + +# vim:set ts=2 sw=2 et: |