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 33d514494..414bcaf26 100755 --- a/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh +++ b/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh @@ -35,9 +35,6 @@ fi # Get launcher LAUNCHER="sudo -u abc php /data/config/www/nextcloud/occ" -if [ ! -f /data/config/www/nextcloud/occ ]; then -LAUNCHER="apk" -fi # Check current version if [ -f /data/config/www/nextcloud/version.php ]; then @@ -110,7 +107,7 @@ if [ -f /reinstall ]; then bashio::log.red "... version installed is : $CURRENTVERSION and version bundled is : $CONTAINERVERSION, need to redownload files" bashio::log.green "... download nextcloud version" mkdir -p /app - if [ -f rm /app/nextcloud.tar.bz2 ]; then rm /app/nextcloud.tar.bz2; fi + if [ -f /app/nextcloud.tar.bz2 ]; then rm /app/nextcloud.tar.bz2; fi curl -o /app/nextcloud.tar.bz2 -L "https://download.nextcloud.com/server/releases/nextcloud-${CURRENTVERSION}.tar.bz2" --progress-bar || \ (bashio::log.fatal "Your version doesn't exist... Please restore backup or fully uninstall addon" && exit 1) fi diff --git a/nextcloud/rootfs/etc/cont-init.d/99-add_packages.sh b/nextcloud/rootfs/etc/cont-init.d/99-add_packages.sh index 88d04802e..66909d2ba 100755 --- a/nextcloud/rootfs/etc/cont-init.d/99-add_packages.sh +++ b/nextcloud/rootfs/etc/cont-init.d/99-add_packages.sh @@ -4,9 +4,6 @@ # Only execute if installed if [ -f /notinstalled ]; then exit 0; fi -# Specify launcher -LAUNCHER="sudo -u abc php /data/config/www/nextcloud/occ" - # Install specific packages if [ ! -d /data/config/www/nextcloud/apps/pdfannotate ]; then CURRENT="$PWD" diff --git a/nextcloud/rootfs/etc/cont-init.d/99-ocr.sh b/nextcloud/rootfs/etc/cont-init.d/99-ocr.sh index 7609c7c2a..d984beafe 100755 --- a/nextcloud/rootfs/etc/cont-init.d/99-ocr.sh +++ b/nextcloud/rootfs/etc/cont-init.d/99-ocr.sh @@ -4,9 +4,6 @@ # Only execute if installed if [ -f /notinstalled ]; then exit 0; fi -# Specify launcher -LAUNCHER="sudo -u abc php /data/config/www/nextcloud/occ" - # Install OCR if requested if [ "$(bashio::config 'OCR')" = "true" ]; then # Install package