aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartłomiej Piotrowski <bpiotrowski@alpinelinux.org>2014-08-01 10:53:29 +0200
committerBartłomiej Piotrowski <bpiotrowski@alpinelinux.org>2014-08-01 10:53:29 +0200
commit901f72fb91b20c15d641ca73c82e83e25534bad1 (patch)
tree70f09a5b111f964c8230330ae454e4ae500fc6fe
parented5a19fd71ca95f09a46e37e2ab7279df8112c9b (diff)
downloadaports-901f72fb91b20c15d641ca73c82e83e25534bad1.tar.bz2
aports-901f72fb91b20c15d641ca73c82e83e25534bad1.tar.xz
main/umurmur: fix typo in post-deinstall
-rw-r--r--main/umurmur/APKBUILD2
-rw-r--r--main/umurmur/umurmur.post-deinstall7
2 files changed, 8 insertions, 1 deletions
diff --git a/main/umurmur/APKBUILD b/main/umurmur/APKBUILD
index 908cfc6845..78b98178ff 100644
--- a/main/umurmur/APKBUILD
+++ b/main/umurmur/APKBUILD
@@ -9,7 +9,7 @@ license="Custom"
depends=
depends_dev=
makedepends="$depends_dev libconfig-dev openssl-dev protobuf-c-dev"
-install="$pkgname.post-install $pkgname-post.deinstall"
+install="$pkgname.post-install $pkgname.post-deinstall"
subpackages="$pkgname-doc"
pkgusers="umurmur"
pkggroups="umurmur"
diff --git a/main/umurmur/umurmur.post-deinstall b/main/umurmur/umurmur.post-deinstall
new file mode 100644
index 0000000000..9a4b18036d
--- /dev/null
+++ b/main/umurmur/umurmur.post-deinstall
@@ -0,0 +1,7 @@
+if getent passwd umurmur >/dev/null 2>&1; then
+ userdel umurmur
+fi
+
+if getent group umurmur >/dev/null 2>&1; then
+ groupdel umurmur
+fi