diff --git a/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh b/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh index da7986171..b54c25a15 100755 --- a/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh +++ b/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh @@ -111,7 +111,7 @@ if [ -f /reinstall ]; then # Reinstall bashio::log.green "... reinstall ongoing, please wait" - rm /data/config/www/nextcloud/index.php && \ + if [ -f /data/config/www/nextcloud/index.php ]; then rm /data/config/www/nextcloud/index.php; fi && \ /./etc/s6-overlay/s6-rc.d/init-nextcloud-config/run fi