Account for missing install

Signed-off-by: Eric Nemchik <eric@nemchik.com>
This commit is contained in:
Eric Nemchik 2023-06-16 15:01:05 -05:00
parent 8e814fad1a
commit 19ffc43845
No known key found for this signature in database

View File

@ -63,7 +63,7 @@ if vergt "${installed_version}" "${image_version}"; then
fi
# initialize nextcloud
if vergt "${image_version}" "${installed_version}" || [ -f /tmp/migration ]; then
if vergt "${image_version}" "${installed_version}" || [ -z "$(ls -A /app/www/public/core/ 2>/dev/null)" ] || [ -f /tmp/migration ]; then
echo "Initializing nextcloud ${image_version} ..."
if [ "${installed_version}" != "0.0.0.0" ]; then
echo "Upgrading nextcloud from ${installed_version} ..."