Skip to content

Commit

Permalink
introduced selection of locales
Browse files Browse the repository at this point in the history
reordered logic for configuration questions
  • Loading branch information
racke committed Dec 29, 2002
1 parent 7d97ed4 commit 334d888
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 9 deletions.
25 changes: 17 additions & 8 deletions debian/interchange-cat-foundation.config
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,35 @@ db_input high interchange-cat-foundation/install || [ $? -eq 30 ]
db_go

db_get interchange-cat-foundation/install
if [ "$RET" = "true" ]; then
db_input medium interchange-cat-foundation/purge || [ $? -eq 30 ]
db_go
db_input high interchange-cat-foundation/username || [ $? -eq 30 ]
db_go
db_input high interchange-cat-foundation/password || [ $? -eq 30 ]
db_go
else
if [ "$RET" == "false" ]; then
exit 0
fi

# overwrite of existing installation
db_input high interchange-cat-foundation/replace || [ $? -eq 30 ]
db_go

GOAHEAD=false
if [ -d /var/lib/interchange/catalogs/foundation ]; then
db_get interchange-cat-foundation/replace
if [ "$RET" = "ask" ]; then
db_fset interchange-cat-foundation/confirm isdefault true
db_input critical interchange-cat-foundation/confirm
db_go
db_get interchange-cat-foundation/confirm
GOAHEAD="$RET"
elif [ "$RET" == "always" ]; then
GOAHEAD=true
fi
else
GOAHEAD=true
fi

db_input medium interchange-cat-foundation/purge || [ $? -eq 30 ]
db_go
db_input high interchange-cat-foundation/username || [ $? -eq 30 ]
db_go
db_input high interchange-cat-foundation/password || [ $? -eq 30 ]
db_go
db_input medium interchange-cat-foundation/locales || [ $? -eq 30 ]
db_go
4 changes: 3 additions & 1 deletion debian/interchange-cat-foundation.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@ if [ "$GOAHEAD" = "true" ]; then
UI_SUPERUSER=$RET
db_get interchange-cat-foundation/password
UI_PASSWORD=$RET
db_get interchange-cat-foundation/locales
LOCALES=`echo "$RET" | sed -e 's/, /,/'`
SERVERNAME=`hostname --fqdn`
MVC_ENABLESECURE=1 MVC_UISECURE=1 MVC_SUPERUSER="$UI_SUPERUSER" MVC_CRYPTPW="$UI_PASSWORD" /usr/bin/makecat \
MVC_ENABLESECURE=1 MVC_UISECURE=1 MVC_SUPERUSER="$UI_SUPERUSER" MVC_CRYPTPW="$UI_PASSWORD" MVC_LOCALES="$LOCALES" /usr/bin/makecat \
-F \
-l /var/log/interchange/makecat.log \
--demotype=$CATALOG \
Expand Down
10 changes: 10 additions & 0 deletions debian/interchange-cat-foundation.templates
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,13 @@ Template: interchange-cat-foundation/demomode
Type: boolean
Default: yes
Description: Enable demo mode ?

Template: interchange-cat-foundation/locales
Type: multiselect
Choices: de_DE, nl_NL
Description: Select additional locales for the storefront of the demo catalog
The Interchange demo catalog is able to display the storefront in a number of
different languages. Each selected locale will increase the memory footprint
of the Interchange server processes, so it is recommended to choose only
locales which are really needed.

0 comments on commit 334d888

Please sign in to comment.