Changeset 27680


Ignore:
Timestamp:
2013-06-21T00:19:46+12:00 (8 years ago)
Author:
davidb
Message:

Embelishment of the web content

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs2-extensions/afrepo/trunk/src/src/INSTALL-PHP.sh

    r27340 r27680  
    1515fi
    1616
     17echo ""
     18echo "** Regnerating httpd-afrepo.conf"
    1719cat "httpd-afrepo.conf.in" \
    18   | sed "s%@4store-http-prefix@%$protocol://$hostname:$f4store_port%g" > "$GEXTAMP_INSTALLED/conf/httpd-afrepo.conf"
     20  | sed "s%@4store-http-prefix@%$protocol://$f4store_hostname:$f4store_port%g" > "$GEXTAMP_INSTALLED/conf/httpd-afrepo.conf"
     21
     22
     23public_facing_url="$protocol://$public_facing_hostname"
     24
     25if [ "x$public_facing_port" != "x" ] ; then
     26  public_facing_url="$public_facing_url:$public_facing_port"
     27fi
     28
     29if [ "x$public_facing_url_prefix" != "x" ] ; then
     30  public_facing_url="$public_facing_url$public_facing_url_prefix"
     31fi
     32
     33public_facing_url="$public_facing_url/"
     34
     35
     36
     37public_facing_f4store_url="$protocol://$public_facing_f4store_hostname"
     38
     39if [ "x$public_facing_f4store_port" != "x" ] ; then
     40  public_facing_f4store_url="$public_facing_f4store_url:$public_facing_f4store_port"
     41fi
     42
     43if [ "x$public_facing_f4store_url_prefix" != "x" ] ; then
     44  public_facing_f4store_url="$public_facing_f4store_url$public_facing_f4store_url_prefix"
     45fi
     46
     47public_facing_f4store_url="$public_facing_f4store_url/"
    1948
    2049
     
    2352cat "AFRepo.GSDLEXT.class.php.in" \
    2453  | sed "s%@afrepo-http-prefix@%$protocol://$hostname:$port%g" \
    25   | sed "s%@4store-http-prefix@%$protocol://$hostname:$f4store_port%g" > "$GEXTAMP_INSTALLED/htdocs/afrepo/AFRepo.class.php"
     54  | sed "s%@4store-http-prefix@%$protocol://$f4store_hostname:$f4store_port%g" \
     55  | sed "s%@public-facing-afrepo-http-prefix@%$public_facing_url%g" \
     56  | sed "s%@public-facing-4store-http-prefix@%$public_facing_f4store_url%g" \
     57  > "$GEXTAMP_INSTALLED/htdocs/afrepo/AFRepo.class.php"
    2658
    2759
     60
     61echo ""
     62echo "** Copying static HTML content (images, CSS etc) to htdocs/afrepo"
     63/bin/cp -r html/* "$GEXTAMP_INSTALLED/htdocs/afrepo/."
Note: See TracChangeset for help on using the changeset viewer.