install-osrf.sh: register ejabberd users as ejabberd user to avoid LP#1659801
authorJeff Davis <jdavis@sitka.bclibraries.ca>
Tue, 11 Jun 2019 20:49:57 +0000 (13:49 -0700)
committerJeff Davis <jdavis@sitka.bclibraries.ca>
Tue, 11 Jun 2019 20:49:57 +0000 (13:49 -0700)
Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
deployment/install-osrf.sh

index d063446..b9c8338 100755 (executable)
@@ -131,10 +131,11 @@ if [[ ! -n "$SKIP_EJABBERD_REG" ]] ; then
     EJABBERD_HOST=$THISHOST
   fi
   sleep 5
+  su -c " \
   ejabberdctl register router private.${EJABBERD_HOST} ${PRIVATE_ROUTER_PASSWD} && \
   ejabberdctl register opensrf private.${EJABBERD_HOST} ${PRIVATE_OPENSRF_PASSWD} && \
   ejabberdctl register router public.${EJABBERD_HOST} ${PUBLIC_ROUTER_PASSWD} && \
-  ejabberdctl register opensrf public.${EJABBERD_HOST} ${PUBLIC_OPENSRF_PASSWD}
+  ejabberdctl register opensrf public.${EJABBERD_HOST} ${PUBLIC_OPENSRF_PASSWD} " ejabberd
 fi
 
 echo "OpenSRF is installed!"