From 1c63572a1228f9dba81bb513566e1e49b00d7d53 Mon Sep 17 00:00:00 2001 From: src386 Date: Mon, 10 Aug 2015 15:55:41 +0200 Subject: [PATCH] - Auto configure pod : language - Auto configure pod : loglevel - Auto configure pod : environment - Auto configure pod : timezone - Auto configure pod : admin and password --- TODO | 1 + scripts/install | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/TODO b/TODO index b8b650f..777f462 100644 --- a/TODO +++ b/TODO @@ -3,3 +3,4 @@ - URL rewriting - Improve security (chown root / www-data) - Static cache +- Change port ? diff --git a/scripts/install b/scripts/install index a4d7f07..4dbde27 100644 --- a/scripts/install +++ b/scripts/install @@ -46,15 +46,13 @@ 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 db set" -s /bin/sh www-data 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 sudo yunohost app addaccess movim -u $admin # Copy init script or systemd service