mirror of
https://github.com/YunoHost-Apps/agendav_ynh.git
synced 2024-09-03 20:36:12 +02:00
set default langage
This commit is contained in:
parent
d9bb697d46
commit
924292dbe1
3 changed files with 5 additions and 1 deletions
|
@ -166,7 +166,7 @@ $config['show_public_caldav_url'] = FALSE;
|
|||
| than en.
|
||||
|
|
||||
*/
|
||||
$config['default_language'] = 'en';
|
||||
$config['default_language'] = 'YNH_LANG';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
|
@ -60,6 +60,8 @@ sed -i "s@YNH_COOKIE_PREFIX@${path#/}@g" ../conf/config.php
|
|||
sed -i "s/YNH_COOKIE_DOMAIN/$domain/g" ../conf/config.php
|
||||
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
|
||||
|
||||
# copy config files
|
||||
sudo cp ../conf/{config.php,database.php,caldav.php} $final_path/web/config/
|
||||
|
|
|
@ -42,6 +42,8 @@ sed -i "s@YNH_COOKIE_PREFIX@${path#/}@g" ../conf/config.php
|
|||
sed -i "s/YNH_COOKIE_DOMAIN/$domain/g" ../conf/config.php
|
||||
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
|
||||
|
||||
# copy config files
|
||||
sudo cp ../conf/{config.php,database.php,caldav.php} $final_path/web/config/
|
||||
|
|
Loading…
Add table
Reference in a new issue