🚑 Ensures viewcache folder exists

This commit is contained in:
Franck Nijhof 2019-06-05 21:09:28 +02:00
parent 0dd3b81031
commit daf67828e6
No known key found for this signature in database
GPG key ID: D62583BA8AB11CA3

View file

@ -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