1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/agendav_ynh.git synced 2024-09-03 20:36:12 +02:00

set timezone

This commit is contained in:
Julien Malik 2014-01-07 23:27:13 +01:00
parent 924292dbe1
commit 7862111193
3 changed files with 5 additions and 1 deletions

View file

@ -258,7 +258,7 @@ $config['default_first_day'] = 1;
| Please, use a valid timezone from http://php.net/timezones
*/
$config['default_timezone'] = 'Europe/Paris';
$config['default_timezone'] = 'YNH_TIMEZONE';
/*
|--------------------------------------------------------------------------

View file

@ -62,6 +62,8 @@ logout_redirect="https://$domain/ynhsso"
sed -i "s@YNH_LOGOUT_REDIRECT_TO@$logout_redirect@g" ../conf/config.php
lang=$(sudo bash -c "echo $LANG | cut -d '.' -f 1")
sed -i "s@YNH_LANG@$lang@g" ../conf/config.php
timezone=$(cat /etc/timezone)
sed -i "s@YNH_TIMEZONE@$timezone@g" ../conf/config.php
# copy config files
sudo cp ../conf/{config.php,database.php,caldav.php} $final_path/web/config/

View file

@ -44,6 +44,8 @@ logout_redirect="https://$domain/ynhsso"
sed -i "s@YNH_LOGOUT_REDIRECT_TO@$logout_redirect@g" ../conf/config.php
lang=$(sudo bash -c "echo $LANG | cut -d '.' -f 1")
sed -i "s@YNH_LANG@$lang@g" ../conf/config.php
timezone=$(cat /etc/timezone)
sed -i "s@YNH_TIMEZONE@$timezone@g" ../conf/config.php
# copy config files
sudo cp ../conf/{config.php,database.php,caldav.php} $final_path/web/config/