🚑 Fix Grocy startup issues (#301)

This commit is contained in:
Franck Nijhof 2022-06-09 22:26:18 +02:00 committed by GitHub
parent de4c545535
commit 35d0fa823e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 10 deletions

View file

@ -56,9 +56,10 @@ RUN \
\
&& find /var/www/ -type f -name "*.md" -depth -exec rm -f {} \; \
&& rm -f -r \
/tmp/* \
/etc/nginx \
/etc/php8/php-fpm.d/www.conf \
/root/.composer \
/tmp/* \
/usr/lib/node_modules \
/usr/local/bin/composer \
/usr/local/share/.cache \

View file

@ -8,11 +8,6 @@ if ! bashio::fs.directory_exists "/data/grocy"; then
# Setup structure
cp -R /var/www/grocy/data /data/grocy
# Ensure file permissions
chown -R nginx:nginx /data/grocy
find /data/grocy -not -perm 0644 -type f -exec chmod 0644 {} \;
find /data/grocy -not -perm 0755 -type d -exec chmod 0755 {} \;
fi
if ! bashio::fs.directory_exists "/data/grocy/viewcache"; then

View file

@ -1 +0,0 @@
/data/grocy true nginx 0644 0755

View file

@ -1,6 +1,6 @@
[{{ .name }}]
user = nginx
group = nginx
user = root
group = root
listen = 127.0.0.1:{{ .port }}
pm = dynamic
pm.max_children = 10

View file

@ -89,4 +89,4 @@ GROCY_CULTURE=$(bashio::config "culture")
GROCY_CURRENCY=$(bashio::config "currency")
GROCY_ENTRY_PAGE=$(bashio::config 'entry_page')
exec php-fpm8 --nodaemonize
exec php-fpm8 -R --nodaemonize