mirror of
https://github.com/hassio-addons/addon-grocy.git
synced 2025-05-04 19:21:24 +00:00
🚑 Fix Grocy startup issues (#301)
This commit is contained in:
parent
de4c545535
commit
35d0fa823e
5 changed files with 5 additions and 10 deletions
|
@ -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 \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
/data/grocy true nginx 0644 0755
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue