0
0
Fork 0
mirror of https://github.com/kevinpapst/kimai2.git synced 2025-05-03 00:40:02 +00:00
kevinpapst_kimai2/.docker/test-lite.sh
2023-11-17 13:07:51 +01:00

22 lines
317 B
Bash
Executable file

#!/bin/sh -e
# Test PHP/Kimai
/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