1
0
Fork 0
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:
polytan02 2016-12-22 13:08:07 +00:00
parent 4fd4e93576
commit 827fe50877
3 changed files with 6 additions and 1 deletions

View file

@ -24,7 +24,7 @@
$config['cops_recentbooks_limit'] = '10'; $config['cops_recentbooks_limit'] = '10';
$config['default_timezone'] = "Europe/London"; $config['default_timezone'] = "TIMEZONETOCHANGE";
$config['cops_template'] = 'default'; $config['cops_template'] = 'default';

View file

@ -59,6 +59,9 @@ sudo mkdir -p $final_path
# Site adjustments # Site adjustments
sudo cp ../conf/config_local.php ../sources/ sudo cp ../conf/config_local.php ../sources/
sed -i "s@CALIBRETOCHANGE@$calibrepath@g" ../sources/config_local.php 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 # To be done : make it an if loop

View file

@ -72,6 +72,8 @@ sudo mkdir -p $final_path
# Site adjustments # Site adjustments
sudo cp ../conf/config_local.php ../sources/ sudo cp ../conf/config_local.php ../sources/
sed -i "s@CALIBRETOCHANGE@$calibrepath@g" ../sources/config_local.php 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 # Base site
sudo cp -a ../sources/* $final_path/ sudo cp -a ../sources/* $final_path/