This repository has been archived on 2023-11-05. You can view files and clone it, but cannot push or open issues or pull requests.
freshrss/overlay/usr/local/bin/entrypoint.sh

16 lines
668 B
Bash
Raw Normal View History

2019-10-02 07:43:32 +00:00
#!/bin/sh
/usr/local/bin/gomplate -V -o /etc/php7/php.ini -f /etc/templates/php.ini.tmpl
/usr/local/bin/gomplate -V -o /var/www/app/data/config.php -f /etc/templates/config.php.tmpl
/usr/local/bin/gomplate -V -o /var/www/app/constants.local.php -f /etc/templates/constants.local.php.tmpl
2019-10-02 22:49:40 +00:00
/usr/bin/php -f ./cli/prepare.php
2019-10-02 07:43:32 +00:00
if [ "${FRESHRSS_DEFAULT_USER}" ]; then
2019-10-02 22:49:40 +00:00
/usr/bin/php ./cli/create-user.php --user "$FRESHRSS_DEFAULT_USER" --password "$FRESHRSS_DEFAULT_PASSWORD"
/usr/bin/php ./cli/do-install.php --default_user "$FRESHRSS_DEFAULT_USER"
2019-10-02 07:43:32 +00:00
fi
exec supercronic -split-logs /etc/crontabs/nginx 1> /dev/null &
exec php-fpm7 -F &
exec nginx -g "daemon off;"