From 1dab3f13b67fc1294bf59cc98681ccdf9cee00b1 Mon Sep 17 00:00:00 2001 From: matlink Date: Thu, 13 Nov 2014 22:06:51 +0100 Subject: [PATCH] update languages --- manifest.json | 9 +++++++++ scripts/install | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index bdd4a15..8e8076c 100644 --- a/manifest.json +++ b/manifest.json @@ -55,6 +55,15 @@ }, "choices": ["Yes", "No"], "default": "No" + }, + { + "name": "default_lang", + "ask": { + "en": "Default language", + "fr": "Langue par défaut" + }, + "choices": ["de","en","es","fr","it","nl","pl","pt","po","ro","ru"], + "default": "en" } diff --git a/scripts/install b/scripts/install index ed093a3..248146b 100644 --- a/scripts/install +++ b/scripts/install @@ -8,6 +8,7 @@ path=$2 admin=$3 password=$4 is_public=$5 +default_lang=$6 domain=${$domain%?} @@ -57,7 +58,7 @@ sudo curl -kL -o /tmp/install_page.html https://$domain/$path/install.php >/dev/ #get the token for form validation token=$(sudo cat /tmp/install_page.html | grep "input" | grep "token" | tail -1 | cut -d' ' -f3 | cut -d'"' -f2) #send http POST values -sudo curl -k -X POST --data "default_lang=fr&timezone=Greenland&install=Installer&name=$admin&login=$admin&pwd=$password&pwd2=$password&token=$token" https://$domain/$path/install.php >/dev/null 2>&1 +sudo curl -k -X POST --data "default_lang=$default_lang&timezone=Greenland&install=Installer&name=$admin&login=$admin&pwd=$password&pwd2=$password&token=$token" https://$domain/$path/install.php >/dev/null 2>&1 sudo chmod 750 -R $final_path # If app is private, remove url to SSOWat conf from skipped_uris