mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
18 lines
422 B
Text
18 lines
422 B
Text
# 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:
|