mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-03 12:38:46 +02:00
Clean code
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
### 25.0.4-10 (22-03-2023)
|
|
||||||
- Minor bugs fixed
|
|
||||||
- Implemented safety check that reinstalls nextcloud if issue detected https://github.com/alexbelgium/hassio-addons/issues/764
|
- Implemented safety check that reinstalls nextcloud if issue detected https://github.com/alexbelgium/hassio-addons/issues/764
|
||||||
- Implemented healthcheck
|
- Implemented healthcheck
|
||||||
- Redirect crond errors to addon logs
|
- Redirect crond errors to addon logs
|
||||||
|
|||||||
@@ -105,6 +105,6 @@
|
|||||||
"slug": "nextcloud_ocr",
|
"slug": "nextcloud_ocr",
|
||||||
"uart": true,
|
"uart": true,
|
||||||
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/nextcloud",
|
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/nextcloud",
|
||||||
"version": "25.0.4-10",
|
"version": "25.0.4-11",
|
||||||
"webui": "https://[HOST]:[PORT:443]"
|
"webui": "https://[HOST]:[PORT:443]"
|
||||||
}
|
}
|
||||||
@@ -21,8 +21,8 @@ done
|
|||||||
# Check if issues with installation
|
# Check if issues with installation
|
||||||
echo "Checking installation"
|
echo "Checking installation"
|
||||||
if [[ "$(occ --version)" == *"Composer autoloader not found"* ]]; then
|
if [[ "$(occ --version)" == *"Composer autoloader not found"* ]]; then
|
||||||
bashio::log.fatal "Issue with installation detected, reinstallation will proceed"
|
bashio::log.fatal "Issue with installation detected, reinstallation will proceed. Your files are copied in /share/nextcloud_backup_$(date +%F)"
|
||||||
if [ -f /data/config/www/nextcloud/index.php ]; then rm -r /data/config/www/nextcloud/index.php; fi
|
mv /data/config/www/nextcloud /share/nextcloud_backup_$(date +%F)
|
||||||
bashio::addon.restart
|
bashio::addon.restart
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user