Permalink
Browse files

new debconf question for defaultlocale

  • Loading branch information...
1 parent 6de4028 commit d75351f2cf3295002b18046a7ff45992c0669cbe @racke racke committed Jan 1, 2003
@@ -1,6 +1,6 @@
#! /bin/sh -e
#
-# Copyright 2001,2002 by Stefan Hornburg (Racke) <racke@linuxia.de>
+# Copyright 2001,2002,2003 by Stefan Hornburg (Racke) <racke@linuxia.de>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -57,3 +57,9 @@ db_input high interchange-cat-foundation/password || [ $? -eq 30 ]
db_go
db_input medium interchange-cat-foundation/locales || [ $? -eq 30 ]
db_go
+db_get interchange-cat-foundation/locales
+if [ "$RET" ]; then
+ db_subst interchange-cat-foundation/defaultlocale LOCALES "en_US, $RET"
+ db_input medium interchange-cat-foundation/defaultlocale || [ $? -eq 30 ]
+ db_go
+fi
@@ -74,8 +74,10 @@ if [ "$GOAHEAD" = "true" ]; then
UI_PASSWORD=$RET
db_get interchange-cat-foundation/locales
LOCALES=`echo "$RET" | sed -e 's/, /,/'`
+ db_get interchange-cat-foundation/defaultlocale
+ DEFAULTLOCALE=$RET
SERVERNAME=`hostname --fqdn`
- MVC_ENABLESECURE=1 MVC_UISECURE=1 MVC_SUPERUSER="$UI_SUPERUSER" MVC_CRYPTPW="$UI_PASSWORD" MVC_LOCALES="$LOCALES" /usr/bin/makecat \
+ MVC_ENABLESECURE=1 MVC_UISECURE=1 MVC_SUPERUSER="$UI_SUPERUSER" MVC_CRYPTPW="$UI_PASSWORD" MVC_LOCALES="$LOCALES" MVC_DEFAULTLOCALE="$DEFAULTLOCALE" /usr/bin/makecat \
-F \
-l /var/log/interchange/makecat.log \
--demotype=$CATALOG \
@@ -82,3 +82,10 @@ Description: Select additional locales for the storefront of the demo catalog
of the Interchange server processes, so it is recommended to choose only
locales which are really needed.
+Template: interchange-cat-foundation/defaultlocale
+Type: select
+Choices: ${LOCALES}
+Default: en_US
+Description: Select default locale for the storefront of the demo catalog
+ Please select the default locale for the Interchange demo catalog.
+

0 comments on commit d75351f

Please sign in to comment.