Adding Default Language switch to generate config script.
As an answer to this request: https://forum.mailcow.email/t/mailcow-german-ui/274
This commit is contained in:
parent
6d24f582b6
commit
0dff3ccffa
|
@ -14,6 +14,18 @@ fi
|
||||||
|
|
||||||
read -p "Hostname (FQDN): " -ei "mx.example.org" MAILCOW_HOSTNAME
|
read -p "Hostname (FQDN): " -ei "mx.example.org" MAILCOW_HOSTNAME
|
||||||
read -p "Timezone: " -ei "Europe/Berlin" TZ
|
read -p "Timezone: " -ei "Europe/Berlin" TZ
|
||||||
|
read -p "WebUI Default Language: " -ei "en/pt/de/nl" MAILCOW_LANGUAGE
|
||||||
|
|
||||||
|
cat << EOF > data/web/inc/vars.local.inc.php
|
||||||
|
<?php
|
||||||
|
error_reporting(0);
|
||||||
|
/*
|
||||||
|
PLEASE USE THIS FILE TO OVERWRITE "vars.inc.php" SETTINGS AND MAKE THEM PERSISTENT!
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Change default language, "en", "pt", "de" or "nl"
|
||||||
|
$DEFAULT_LANG = "${MAILCOW_LANGUAGE}";
|
||||||
|
EOF
|
||||||
|
|
||||||
cat << EOF > mailcow.conf
|
cat << EOF > mailcow.conf
|
||||||
# ------------------------------
|
# ------------------------------
|
||||||
|
|
Loading…
Reference in New Issue