1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/movim_ynh.git synced 2024-09-03 19:46:19 +02:00

- Auto configure pod : language

- Auto configure pod : loglevel
- Auto configure pod : environment
- Auto configure pod : timezone
- Auto configure pod : admin and password
This commit is contained in:
src386 2015-08-10 15:55:41 +02:00
parent d239cbee3f
commit 1c63572a12
2 changed files with 2 additions and 3 deletions

1
TODO
View file

@ -3,3 +3,4 @@
- URL rewriting
- Improve security (chown root / www-data)
- Static cache
- Change port ?

View file

@ -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