Improve code

This commit is contained in:
Alexandre
2023-03-30 10:14:38 +02:00
parent 828ac14b82
commit f15eff4bed

View File

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