Mail archive
alpine-aports

[alpine-aports] [PATCH] Add mongodb group at install, as required by openrc. Fix #5299

From: Marc Vertes <marc.vertes_at_ugrid.net>
Date: Wed, 23 Mar 2016 19:24:07 +0100

---
 testing/mongodb/APKBUILD            | 2 +-
 testing/mongodb/mongodb.pre-install | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/testing/mongodb/APKBUILD b/testing/mongodb/APKBUILD
index cad7ba1..2f7e551 100644
--- a/testing/mongodb/APKBUILD
+++ b/testing/mongodb/APKBUILD
_at_@ -80,7 +80,7 @@ package() {
 	# install alpine specific files
 	install -dm700 "$pkgdir/var/lib/mongodb"
 	install -dm755 "$pkgdir/var/log/mongodb"
-        chown mongodb:daemon "$pkgdir/var/lib/mongodb" "$pkgdir/var/log/mongodb"
+        chown mongodb:mongodb "$pkgdir/var/lib/mongodb" "$pkgdir/var/log/mongodb"
 
 	install -Dm755 "$srcdir/mongodb.initd" "$pkgdir/etc/init.d/mongodb"
 	install -Dm644 "$srcdir/mongodb.confd" "$pkgdir/etc/conf.d/mongodb"
diff --git a/testing/mongodb/mongodb.pre-install b/testing/mongodb/mongodb.pre-install
index e02453f..9b4b642 100644
--- a/testing/mongodb/mongodb.pre-install
+++ b/testing/mongodb/mongodb.pre-install
_at_@ -1,4 +1,5 @@
 #!/bin/sh
 
-adduser -D -G daemon -h /var/lib/mongodb -s /sbin/nologin mongodb
+addgroup mongodb
+adduser -D -G mongodb -h /var/lib/mongodb -s /sbin/nologin mongodb
 exit 0
-- 
2.7.4
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Wed Mar 23 2016 - 19:24:07 GMT