mirror of
https://github.com/hassio-addons/addon-grocy.git
synced 2025-05-05 03:31:30 +00:00
🚑 Ensures viewcache folder exists
This commit is contained in:
parent
0dd3b81031
commit
daf67828e6
1 changed files with 5 additions and 0 deletions
|
@ -15,6 +15,11 @@ if ! bashio::fs.directory_exists "/data/grocy"; then
|
|||
find /data/grocy -not -perm 0755 -type d -exec chmod 0755 {} \;
|
||||
fi
|
||||
|
||||
if ! bashio::fs.directory_exists "/data/grocy/viewcache"; then
|
||||
mkdir -p /data/grocy/viewcache
|
||||
chown nginx:nginx /data/grocy/viewcache
|
||||
fi
|
||||
|
||||
bashio::log.debug 'Symlinking data directory to persistent storage location...'
|
||||
rm -f -r /var/www/grocy/data
|
||||
ln -s /data/grocy /var/www/grocy/data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue