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

add timezone in php fpm movim pool.

This commit is contained in:
src386 2015-08-31 15:23:07 +02:00
parent 584e3593e6
commit 0d874b79e2
4 changed files with 5 additions and 2 deletions

View file

@ -18,6 +18,7 @@ Current Movim version : 0.9 git2015-08-31
- Remove proxy_read_timeout and proxy_send_timeout in vhost configuration (default 60s is enough)
- Movim sysvinit script now uses syslog.
- Installation script now checks if path is empty.
- Add timezone in Movim php fpm conf.
0.8b 2015-08-24
- Added language selection : ar, de, es, it, ja, nl, ru

1
TODO
View file

@ -1 +0,0 @@
- Set timezone in php5-fpm pool

View file

@ -13,3 +13,4 @@ pm.min_spare_servers = 1
pm.max_spare_servers = 3
chdir = /var/www/movim
php_admin_value[open_basedir] = none
date.timezone = "YHTZ"

View file

@ -8,6 +8,7 @@ password=$4
language=$5
public_site=$6
port=$7
timzone=`cat /etc/timezone`
# Check domain/path availability
sudo yunohost app checkurl $domain$path -a movim
@ -81,7 +82,7 @@ sudo su -c "cd $final_path && php mud.php db set" movim
sudo su -c "cd $final_path && php mud.php config locale:$language" movim
sudo su -c "cd $final_path && php mud.php config loglevel:1" movim
sudo su -c "cd $final_path && php mud.php config environment:production" movim
sudo su -c "cd $final_path && php mud.php config timezone:`cat /etc/timezone`" movim
sudo su -c "cd $final_path && php mud.php config timezone:$timezone" movim
sudo su -c "cd $final_path && php mud.php config username:$admin" movim
sudo su -c "cd $final_path && php mud.php config password:`echo -n $password | sha1sum | awk '{print $1}'`" movim
if [ $public_site = "No" ];
@ -108,6 +109,7 @@ else
fi
# php-fpm configuration
sed -i "s@YHTZ@$timezone@g" ../conf/php-fpm.conf
sudo cp ../conf/php-fpm.conf /etc/php5/fpm/pool.d/movim.conf
# Nginx configuration