diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-12-27 23:55:53 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-12-27 23:55:53 +0000 |
commit | 65eeff79fff8a1bfdf67ca51d147384f46f4d5c0 (patch) | |
tree | fbfdff322b28d9a3c37e6e31c94caf1d8e48dac1 /community/docker/docker.install | |
parent | d53c44f055929b18d7d1b25f8367ee5836c435fc (diff) |
Fri Dec 27 23:54:04 UTC 2013
Diffstat (limited to 'community/docker/docker.install')
-rw-r--r-- | community/docker/docker.install | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/community/docker/docker.install b/community/docker/docker.install new file mode 100644 index 000000000..f730503de --- /dev/null +++ b/community/docker/docker.install @@ -0,0 +1,18 @@ +# arg 1: the new package version +post_install() { + # create docker group (FS#38029) + getent group docker >/dev/null || groupadd -g 142 docker +} + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + (( $(vercmp $2 '1:0.7.1-1') < 0 )) && post_install "$1" || true +} + +# arg 1: the old package version +post_remove() { + groupdel docker >/dev/null 2>&1 || true +} + +# vim:set ts=2 sw=2 et: |