Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

consider FullURL setting for demo catalog

  • Loading branch information...
commit c5c04665e7cfed411b9f57ff2349d863974c3f44 1 parent 4d867f3
@racke racke authored
View
8 debian/interchange-cat-standard.config
@@ -52,6 +52,14 @@ fi
db_input medium interchange-cat-standard/purge || [ $? -eq 30 ]
db_go
+# web parameters
+db_get interchange/full_url
+if [ "$RET" = "true" ]; then
+ db_set interchange-cat-standard/vhost `hostname --fqdn`
+ db_input medium interchange-cat-standard/vhost || [ $? -eq 30 ]
+ db_go
+fi
+
# database parameters
db_input high interchange-cat-standard/dbtype || [ $? -eq 30 ]
db_go
View
11 debian/interchange-cat-standard.postinst
@@ -123,14 +123,21 @@ fi
db_get interchange-cat-standard/install
if [ "$RET" = "true" ]; then
+ db_get interchange/full_url
+ if [ "$RET" = "true" ]; then
+ db_get interchange-cat-standard/vhost
+ URLS="$RET/cgi-bin/ic/standard $RET:443/cgi-bin/ic/standard"
+ else
+ URLS="/cgi-bin/ic/standard"
+ fi
cat <<EOF >/var/lib/interchange/catalog.d/interchange-cat-standard.cfg
include usertag/standard/*
require module Vend::Payment::TestPayment
-Catalog standard /var/lib/interchange/catalogs/standard /cgi-bin/ic/standard
+Catalog standard /var/lib/interchange/catalogs/standard $URLS
EOF
if [ ! -f /var/run/interchange-install ]; then
# add catalog to running server
- echo 'Catalog standard /var/lib/interchange/catalogs/standard /cgi-bin/ic/standard' | /usr/sbin/interchange --add standard
+ echo "Catalog standard /var/lib/interchange/catalogs/standard $URLS" | /usr/sbin/interchange --add standard
fi
fi
View
6 debian/interchange-cat-standard.templates
@@ -26,6 +26,12 @@ Default: false
_Description: Replace the Interchange demo catalog?
There seems to already exist an Interchange demo catalog.
+Template: interchange-cat-standard/vhost
+Type: string
+Default:
+_Description: Virtual host for the demo catalog ?
+ You are running Interchange with "FullURL" enabled. Please specify the virtual host for the demo catalog.
+
Template: interchange-cat-standard/username
Type: string
Default: interchange
Please sign in to comment.
Something went wrong with that request. Please try again.