22 lines
552 B
Bash
Raw Normal View History

2017-08-08 15:55:43 +02:00
#!/bin/sh
2019-05-15 12:03:55 +02:00
if [ "${ULOGGER_ENABLE_SETUP}" = "1" ]; then
sed -i "s/\$enabled = false;/\$enabled = true;/" /var/www/html/scripts/setup.php;
echo "ulogger setup script enabled"
echo "----------------------------"
fi
2017-08-08 15:55:43 +02:00
# show config variables
echo "ulogger configuration"
echo "---------------------"
grep '^\$' /var/www/html/config.php
2019-01-24 19:07:41 +01:00
# start services
if [ "$ULOGGER_DB_DRIVER" = "pgsql" ]; then
2020-05-22 22:33:47 +02:00
su postgres -c 'pg_ctl -D /data/pgsql start'
2019-01-28 23:03:03 +01:00
elif [ "$ULOGGER_DB_DRIVER" = "mysql" ]; then
2020-05-22 22:33:47 +02:00
mysqld_safe --datadir=/data/mysql &
2019-01-24 19:07:41 +01:00
fi
2017-08-08 15:55:43 +02:00
nginx
php-fpm7 -F