mirror of
https://github.com/kevinpapst/kimai2.git
synced 2025-05-01 07:49:59 +00:00

* added fix to work around bc break in new phpword version * fix phpoffice deprecations * mark unused option as deprecated * support for DateTimeInterface and DateTimeImmutable where possible * use TRUSTED_PROXIES setting - fixes #4533 * re-enable Kimai test in docker test build script (#4541) * bump dependencies
25 lines
431 B
Bash
Executable file
25 lines
431 B
Bash
Executable file
#!/bin/sh -e
|
|
|
|
if [ -z "$DATABASE_URL" ]; then
|
|
DATABASE_URL="mysql://kimai:kimai@127.0.0.1:3306/kimai?charset=utf8mb4&serverVersion=5.7.40"
|
|
fi
|
|
|
|
/opt/kimai/bin/console kimai:version
|
|
if [ $? != 0 ]; then
|
|
echo "PHP/Kimai not responding"
|
|
exit 1
|
|
fi
|
|
|
|
# Test FPM CGI
|
|
if [ -f /use_fpm ]; then
|
|
echo Testing FPM
|
|
php-fpm -t
|
|
fi
|
|
|
|
# Test Apache/httpd
|
|
if [ -f /use_apache ]; then
|
|
echo Testing Apache
|
|
apache2ctl -t
|
|
fi
|
|
|
|
exit 0
|