1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kimai2_ynh.git synced 2024-09-03 19:26:26 +02:00

upgrade: temporary fix for convert-timezone script from 0.8.1 kimai release

This commit should be removed when a fixed kimai will be released
(presumably as 0.8.2).

see: https://github.com/kevinpapst/kimai2/pull/637
This commit is contained in:
Jiří Klimeš 2019-03-15 12:52:15 +01:00
parent 5ff7813943
commit 07ab5640a6

View file

@ -156,6 +156,10 @@ cd $final_path && sudo /usr/bin/php7.2 bin/console cache:clear --env=prod
cd $final_path && sudo /usr/bin/php7.2 bin/console cache:warmup --env=prod cd $final_path && sudo /usr/bin/php7.2 bin/console cache:warmup --env=prod
cd $final_path && sudo /usr/bin/php7.2 bin/console doctrine:migrations:migrate -n cd $final_path && sudo /usr/bin/php7.2 bin/console doctrine:migrations:migrate -n
# convert-timezone script has a problem running non-interactively (-n) on 0.8.1
# fix it here
sed -i "s/, \$amount));/, \$amount), 'y');/" /var/www/$app/src/Command/ConvertTimezoneCommand.php
# call convert-timezone script when upgrading from < 0.8 verions # call convert-timezone script when upgrading from < 0.8 verions
# fixes timezone issue: https://github.com/kevinpapst/kimai2/pull/372 # fixes timezone issue: https://github.com/kevinpapst/kimai2/pull/372
if `dpkg --compare-versions $old_ver "lt" "0.8"` if `dpkg --compare-versions $old_ver "lt" "0.8"`