Clean log

This commit is contained in:
Alexandre
2023-03-22 14:02:52 +01:00
parent cb3ecd86a0
commit f1bd70087a
3 changed files with 3 additions and 4 deletions

View File

@@ -1,5 +1,3 @@
### 25.0.4-9 (22-03-2023)
- Minor bugs fixed
- Implemented safety check that reinstalls nextcloud if issue detected https://github.com/alexbelgium/hassio-addons/issues/764
- Implemented healthcheck
- Redirect crond errors to addon logs

View File

@@ -105,6 +105,6 @@
"slug": "nextcloud_ocr",
"uart": true,
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/nextcloud",
"version": "25.0.4-9",
"version": "25.0.4-10",
"webui": "https://[HOST]:[PORT:443]"
}

View File

@@ -19,7 +19,8 @@ for var in /data/config/log/nginx/error.log /data/config/log/nginx/access.log /d
done
# Check if issues with installation
if [[ "$(occ)" == *"Composer autoloader not found"* ]]; then
echo "Checking installation"
if [[ "$(occ --version)" == *"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