diff options
author | blsaws <bryan.sullivan@att.com> | 2016-05-18 10:23:04 -0700 |
---|---|---|
committer | blsaws <bryan.sullivan@att.com> | 2016-05-18 10:23:04 -0700 |
commit | 9d612beef01f08c3034547df4f851a3c01cee0ee (patch) | |
tree | 60908681d7c385bf9afc79be3c177aae7f8374d0 /components/congress/test-webapp/setup/install_congress_testserver_2.sh | |
parent | 47c2f775e9b0b54dc412eaefaefbff5edf07ce53 (diff) |
Further refactoring of test webapp setup.
JIRA: COPPER-4
Change-Id: Ifabd2b1408a64862b0bef6e62275bfa3c8df86b5
Signed-off-by: blsaws <bryan.sullivan@att.com>
Diffstat (limited to 'components/congress/test-webapp/setup/install_congress_testserver_2.sh')
-rw-r--r-- | components/congress/test-webapp/setup/install_congress_testserver_2.sh | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/components/congress/test-webapp/setup/install_congress_testserver_2.sh b/components/congress/test-webapp/setup/install_congress_testserver_2.sh index da608b8..1f50be3 100644 --- a/components/congress/test-webapp/setup/install_congress_testserver_2.sh +++ b/components/congress/test-webapp/setup/install_congress_testserver_2.sh @@ -70,6 +70,8 @@ if [ "$dist" == "Ubuntu" ]; then /etc/init.d/apache2 restart else + echo "Add epel repo" + yum install epel-release -y echo "install pip" yum install python-pip -y @@ -77,29 +79,6 @@ else echo "install other dependencies" yum install apg git gcc libxml2 python-devel libzip-devel libxslt-devel -y - echo "Install Apache, PHP" - yum install -y httpd php - - echo "Setup the Congress Test Webappp" - - echo "Copy the Apache config" - cp /opt/copper/www/centos-httpd.conf /etc/httpd/conf/httpd.conf - - echo "Copy the webapp to the Apache root directory and fix permissions" - cp -R /opt/copper/www/html/* /var/www/html - chmod 755 /var/www/html -R - - echo "Point copper.js to the trusty-copper server per your install" - sed -i -- "s/COPPER_HOST/$COPPER_HOST/g" /var/www/html/copper.js - - echo "Point proxy.php to the Congress server per your install" - sed -i -- "s/CONGRESS_HOST/$CONGRESS_HOST/g" /var/www/html/proxy/index.php - - echo "Make webapp log directory" - mkdir /tmp/copper/log - - systemctl restart httpd.service - fi echo "Install python dependencies" |