mirror of
https://github.com/YunoHost-Apps/cops_ynh.git
synced 2024-09-03 18:25:57 +02:00
Automatically adjust timezone
This commit is contained in:
parent
4fd4e93576
commit
827fe50877
3 changed files with 6 additions and 1 deletions
|
@ -24,7 +24,7 @@
|
|||
|
||||
$config['cops_recentbooks_limit'] = '10';
|
||||
|
||||
$config['default_timezone'] = "Europe/London";
|
||||
$config['default_timezone'] = "TIMEZONETOCHANGE";
|
||||
|
||||
$config['cops_template'] = 'default';
|
||||
|
||||
|
|
|
@ -59,6 +59,9 @@ sudo mkdir -p $final_path
|
|||
# Site adjustments
|
||||
sudo cp ../conf/config_local.php ../sources/
|
||||
sed -i "s@CALIBRETOCHANGE@$calibrepath@g" ../sources/config_local.php
|
||||
timezone=`sudo cat /etc/timezone`;
|
||||
sed -i "s@TIMEZONETOCHANGE@$calibrepath@g" ../sources/config_local.php
|
||||
|
||||
|
||||
# To be done : make it an if loop
|
||||
|
||||
|
|
|
@ -72,6 +72,8 @@ sudo mkdir -p $final_path
|
|||
# Site adjustments
|
||||
sudo cp ../conf/config_local.php ../sources/
|
||||
sed -i "s@CALIBRETOCHANGE@$calibrepath@g" ../sources/config_local.php
|
||||
timezone=`sudo cat /etc/timezone`;
|
||||
sed -i "s@TIMEZONETOCHANGE@$calibrepath@g" ../sources/config_local.php
|
||||
|
||||
# Base site
|
||||
sudo cp -a ../sources/* $final_path/
|
||||
|
|
Loading…
Reference in a new issue