mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 18:31:02 +01:00
Improve code
This commit is contained in:
@@ -100,6 +100,9 @@ if [ -f /reinstall ]; then
|
||||
rm /reinstall
|
||||
bashio::log.red "... issue with installation detected, reinstallation will proceed"
|
||||
|
||||
# Check container version
|
||||
CONTAINERVERSION="$(cat /nextcloudversion)"
|
||||
|
||||
# Redownload nextcloud if wrong version
|
||||
if [[ ! "$CURRENTVERSION" == "$CONTAINERVERSION" ]]; then
|
||||
bashio::log.red "... version installed is : $CURRENTVERSION and version bundled is : $CONTAINERVERSION, need to redownload files"
|
||||
|
||||
Reference in New Issue
Block a user