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:
parent
924292dbe1
commit
7862111193
3 changed files with 5 additions and 1 deletions
|
@ -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';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
|
@ -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/
|
||||
|
|
|
@ -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/
|
||||
|
|
Loading…
Add table
Reference in a new issue