Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

get infos from settings.cfg

  • Loading branch information...
commit 9b31c0db3076fc761e47e109e5a1306a11d6bb69 1 parent f00b5af
@racke racke authored
Showing with 17 additions and 1 deletion.
  1. +17 −1 debian/interchange-ui.config
View
18 debian/interchange-ui.config
@@ -3,5 +3,21 @@
# Source debconf library
. /usr/share/debconf/confmodule
-db_input medium interchange-ui/uilocales || true
+# Settings
+if [ -f /etc/interchange/settings.cfg ]; then
+ exec 4</etc/interchange/settings.cfg
+ while read <&4 variable name value; do
+ if [ "$variable" = "Variable" ]; then
+ FLAG=false
+ if [ "$value" = "1" ]; then
+ FLAG=true
+ fi
+ if [ "$name" = "UI_LOCALE" ]; then
+ db_set interchange-ui/defaultlocale $FLAG
+ fi
+ fi
+ done
+fi
+
+db_input low interchange-ui/defaultlocale || [ $? -eq 30 ]
db_go
Please sign in to comment.
Something went wrong with that request. Please try again.