Browse code

BM-15524 Fix: RPM pre script

Anthony Prades authored on 08/01/2020 13:59:44
Showing 1 changed files
... ...
@@ -50,9 +50,12 @@ getent passwd www-data >/dev/null || /usr/sbin/useradd -c "Nginx web server" -d
50 50
 
51 51
 # create 'bluemind' group on target host
52 52
 getent group %{_bluemindgroup} >/dev/null || /usr/sbin/groupadd -g %{bluemindgid} -r %{_bluemindgroup}
53
-getent passwd cyrus >/dev/null && usermod -a -G %{_bluemindgroup} cyrus
54
-getent passwd www-data >/dev/null && usermod -a -G %{_bluemindgroup} www-data
55
-getent passwd telegraf >/dev/null && usermod -a -G %{_bluemindgroup} telegraf
53
+getent passwd cyrus >/dev/null && /usr/sbin/usermod -a -G %{_bluemindgroup} cyrus
54
+getent passwd www-data >/dev/null && /usr/sbin/usermod -a -G %{_bluemindgroup} www-data
55
+getent passwd telegraf >/dev/null && /usr/sbin/usermod -a -G %{_bluemindgroup} telegraf
56
+
57
+# Needed to ensure pre script quit with 0 as return value
58
+exit 0
56 59
 
57 60
 %post
58 61
 for file in /etc/bm/nodeclient_cert.pem \