Creating separate function for ejabberd config
authorChris Sharp <csharp@georgialibraries.org>
Wed, 13 Apr 2016 18:18:27 +0000 (14:18 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 13 Apr 2016 18:18:27 +0000 (14:18 -0400)
install-eg/install_eg.sh

index 153995f..8ed41c1 100755 (executable)
@@ -17,6 +17,8 @@ OSRF_BRANCH="osrf_rel_2_4_1"
 OSRF_PREFIX="/openils"
 OSRF_CONF_PREFIX="/openils/conf"
 ETC_HOSTS="127.0.1.2\tpublic.localhost\tpublic\n127.0.1.3\tprivate.localhost\tprivate"
+
+# ejabberd
 EJABBERD_CFG="$WORKDIR/ejabberd.cfg"
 EJABBERD_CONFIG_FILE="/etc/ejabberd/ejabberd.cfg"
 EJABBERD_STOP="/etc/init.d/ejabberd stop"
@@ -86,6 +88,9 @@ chown -R $OSRF_USER:$OSRF_USER $OSRF_PREFIX
 sed -i "s/$HOSTNAME/$HOSTNAME\n$ETC_HOSTS/" /etc/hosts
 echo $OSRF_PREFIX/lib > /etc/ld.so.conf.d/opensrf.conf
 ldconfig
+}
+
+ConfigureEjabberd () {
 $EJABBERD_STOP
 cp -b $EJABBERD_CFG $EJABBERD_CONFIG_FILE
 chown ejabberd:ejabberd $EJABBERD_CONFIG_FILE
@@ -183,7 +188,7 @@ restart rsyslog
 echo -e "log_destination = 'syslog'\nsyslog_facility = 'LOCAL3'\nsyslog_ident = 'postgres'" >> /etc/postgresql/9.3/main/postgresql.conf
 /etc/init.d/postgresql reload
 }
-
+label:helpdesk 
 StartEvergreen () {
 su - $OSRF_USER <<EOF
 osrf_control --localhost --restart-all
@@ -196,6 +201,7 @@ EOF
 #SetupGit
 #InstallOpenSRF
 #ConfigureOpenSRF
+#ConfigureEjabberd
 #InstallEvergreen
 #InstallDojo
 #ConfigureApache