[arch-commits] Commit in rethinkdb/trunk (rethinkdb.install)
Anatol Pomozov
anatolik at archlinux.org
Mon Feb 9 21:26:09 UTC 2015
Date: Monday, February 9, 2015 @ 22:26:09
Author: anatolik
Revision: 127442
Create users only if it unexists at the system
Modified:
rethinkdb/trunk/rethinkdb.install
-------------------+
rethinkdb.install | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Modified: rethinkdb.install
===================================================================
--- rethinkdb.install 2015-02-09 21:25:03 UTC (rev 127441)
+++ rethinkdb.install 2015-02-09 21:26:09 UTC (rev 127442)
@@ -1,6 +1,6 @@
post_install() {
- getent group rethinkdb >/dev/null && groupadd --system rethinkdb &>/dev/null
- getent passwd rethinkdb >/dev/null && useradd --system -g rethinkdb -d /var/lib/rethinkdb -s /bin/false rethinkdb &>/dev/null
+ getent group rethinkdb >/dev/null || groupadd --system rethinkdb &>/dev/null
+ getent passwd rethinkdb >/dev/null || useradd --system -g rethinkdb -d /var/lib/rethinkdb -s /bin/false rethinkdb &>/dev/null
if type -P systemd-tmpfiles &> /dev/null; then
systemd-tmpfiles --create rethinkdb.conf
More information about the arch-commits
mailing list