[freeside-commits] branch FREESIDE_4_BRANCH updated. d727782c8e2e97cc3cde2d3b8836eae720108485

Ivan ivan at 420.am
Sat Jun 13 15:49:01 PDT 2015


The branch, FREESIDE_4_BRANCH has been updated
       via  d727782c8e2e97cc3cde2d3b8836eae720108485 (commit)
      from  2c57984234d1008988270e1ffe4bfdb79a21e14d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d727782c8e2e97cc3cde2d3b8836eae720108485
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Sat Jun 13 15:49:00 2015 -0700

    webdemo hack to set IP in RT_SiteConfig.pm controlled by presence of a file instead of needing to be commented out and thus losing on upgrade

diff --git a/init.d/freeside-init b/init.d/freeside-init
index 099603e..248c5b3 100644
--- a/init.d/freeside-init
+++ b/init.d/freeside-init
@@ -88,9 +88,11 @@ case "$1" in
         freeside-torrus-srvderive $QUEUED_USER
         echo "done."
 
-        #ip=`/sbin/ifconfig $IF | grep 'inet addr:' | cut -d: -f2- | cut -d' ' -f1`
-        #cp /opt/rt3/etc/RT_SiteConfig.pm.ORIG /opt/rt3/etc/RT_SiteConfig.pm
-        #perl -pi -e "s/localhost/$ip/" /opt/rt3/etc/RT_SiteConfig.pm
+        if [ -e /opt/rt3/etc/RT_SiteConfig.pm.ORIG_WEBDEMO_HACK ]; then
+          ip=`/sbin/ifconfig $IF | grep 'inet addr:' | cut -d: -f2- | cut -d' ' -f1`
+          cp /opt/rt3/etc/RT_SiteConfig.pm.ORIG_WEBDEMO_HACK /opt/rt3/etc/RT_SiteConfig.pm
+          perl -pi -e "s/localhost/$ip/" /opt/rt3/etc/RT_SiteConfig.pm
+        fi
 
         ;;
   stop)

-----------------------------------------------------------------------

Summary of changes:
 init.d/freeside-init |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)




More information about the freeside-commits mailing list