move mimteype update to nextcloud_configuration menu (#2031)

Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
szaimen 2021-06-20 20:20:35 +02:00 committed by GitHub
parent e7fc8dd4f2
commit 720761bc73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -36,6 +36,7 @@ $CHECKLIST_GUIDE\n\n$RUN_LATER_GUIDE" "$WT_HEIGHT" "$WT_WIDTH" 4 \
"Disable workspaces" "(Disable top notes in GUI)" OFF \
"Disable user flows" "(Disable user settings for Nextcloud Flow)" OFF \
"Check 0-Byte files" "(Check if files are 0-byte (empty/corrupted))" OFF \
"Update mimetype list" "(Update Nextclouds internal mimetype database)" OFF \
"Enable logrotate" "(Use logrotate to keep more Nextcloud logs)" OFF 3>&1 1>&2 2>&3)
case "$choice" in
@ -97,6 +98,15 @@ Please upgrade by running 'sudo bash /var/scripts/update.sh'" "$SUBTITLE"
print_text_in_color "$ICyan" "Downloading the 0-Byte files script..."
run_script ADDONS 0-byte-files
;;&
*"Update mimetype list"*)
if yesno_box_yes "Do you want to update Nextclouds internal mimetype database?
This option is recommended to be run after every major Nextcloud update." "Update mimetypes"
then
print_text_in_color "$ICyan" "Updating Nextclouds internal mimetype database..."
nextcloud_occ maintenance:mimetype:update-js
nextcloud_occ maintenance:mimetype:update-db
fi
;;&
*"Enable logrotate"*)
SUBTITLE="Enable logrotate"
msg_box "This option enables logrotate for Nextcloud logs to keep all logs for 10 days" "$SUBTITLE"

View File

@ -842,8 +842,6 @@ then
nextcloud_occ upgrade
# Optimize
print_text_in_color "$ICyan" "Optimizing Nextcloud..."
#nextcloud_occ maintenance:mimetype:update-js
#nextcloud_occ maintenance:mimetype:update-db
yes | nextcloud_occ db:convert-filecache-bigint
nextcloud_occ db:add-missing-indices
CURRENTVERSION=$(sudo -u www-data php $NCPATH/occ status | grep "versionstring" | awk '{print $3}')