Skip to content

Commit

Permalink
Merge pull request #5046 from nextcloud/enh/noid/allow-skip-optimization
Browse files Browse the repository at this point in the history
nextcloud: allow to skip database optimization
  • Loading branch information
szaimen authored Jul 26, 2024
2 parents 00c4162 + a27f51a commit fe957f1
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Containers/nextcloud/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,6 @@ DATADIR_PERMISSION_CONF
php /var/www/html/occ app:disable updatenotification
rm -rf /var/www/html/apps/updatenotification
php /var/www/html/occ app:enable nextcloud-aio --force
php /var/www/html/occ db:add-missing-indices
php /var/www/html/occ db:add-missing-columns
php /var/www/html/occ db:add-missing-primary-keys
yes | php /var/www/html/occ db:convert-filecache-bigint
Expand Down Expand Up @@ -423,12 +422,12 @@ DATADIR_PERMISSION_CONF
# Apply optimization
echo "Doing some optimizations..."
php /var/www/html/occ maintenance:repair
php /var/www/html/occ db:add-missing-indices
php /var/www/html/occ db:add-missing-columns
php /var/www/html/occ db:add-missing-primary-keys
yes | php /var/www/html/occ db:convert-filecache-bigint
php /var/www/html/occ maintenance:mimetype:update-js
php /var/www/html/occ maintenance:mimetype:update-db
if [ "$NEXTCLOUD_SKIP_DATABASE_OPTIMIZATION" != yes ]; then
php /var/www/html/occ db:add-missing-indices
php /var/www/html/occ db:add-missing-columns
php /var/www/html/occ db:add-missing-primary-keys
yes | php /var/www/html/occ db:convert-filecache-bigint
fi
fi
fi

Expand Down

0 comments on commit fe957f1

Please sign in to comment.