Alexandre
2023-03-22 13:45:45 +01:00
parent d5db3d74e8
commit 333a6d7ab7
4 changed files with 13 additions and 3 deletions

View File

@@ -18,6 +18,13 @@ for var in /data/config/log/nginx/error.log /data/config/log/nginx/access.log /d
ln -sf /proc/1/fd/1 "$var"
done
# Check if issues with installation
if [[ "$(occ)" == *"Composer autoloader not found"* ]]; then
bashio::log.fatal "Issue with installation detected, reinstallation will proceed"
if [ -f /data/config/www/nextcloud/index.php ]; then rm -r /data/config/www/nextcloud/index.php; fi
bashio::addon.restart
fi
# Add new log info to config.php
#for var in /defaults/config.php /data/config/www/nextcloud/config/config.php; do
# sed -i "/logfile/d" "$var"