diff --git a/TODO b/TODO index 5d6031a..b8b650f 100644 --- a/TODO +++ b/TODO @@ -1,3 +1,5 @@ - SSO / no SSO distinction - ?q=admin support - URL rewriting +- Improve security (chown root / www-data) +- Static cache diff --git a/manifest.json b/manifest.json index ee95c4f..26b510f 100644 --- a/manifest.json +++ b/manifest.json @@ -43,6 +43,23 @@ }, "choices": ["Yes", "No"], "default": "No" + }, + { + "name": "language", + "ask": { + "en": "Pod language", + "fr": "Langue du pod" + }, + "choices" : ["en", "fr"], + "default" : "en" + }, + { + "name": "password", + "ask": { + "en": "Administrator password", + "fr": "Mot de passe pour l'administrateur" + }, + "example" : "password" } ] } diff --git a/scripts/install b/scripts/install index 630df0c..a4d7f07 100644 --- a/scripts/install +++ b/scripts/install @@ -5,6 +5,8 @@ domain=$1 path=$2 admin=$3 public_site=$4 +language=$5 +password=$6 # Check domain/path availability sudo yunohost app checkurl $domain$path -a movim @@ -44,6 +46,12 @@ sudo sed -i "s/yhuser/$db_user/g" $final_path/config/db.inc.php sudo sed -i "s/yhpwd/$db_pwd/g" $final_path/config/db.inc.php sudo sed -i "s/yhdb/$db_user/g" $final_path/config/db.inc.php sudo sed -i "s@PATHTOCHANGE@$path@g" $final_path/app/assets/js/movim_websocket.js +sudo su -c "cd $final_path && php mud.php config locale:$language" +sudo su -c "cd $final_path && php mud.php config loglevel:1" +sudo su -c "cd $final_path && php mud.php config environment:production" +sudo su -c "cd $final_path && php mud.php config timezone:`cat /etc/timezone`" +sudo su -c "cd $final_path && php mud.php config username:$admin" +sudo su -c "cd $final_path && php mud.php config password:$password" # Populate Movim database sudo su -c "cd $final_path && php mud.php db set" -s /bin/sh www-data