diff --git a/scripts/install b/scripts/install index 345082b..7a1d8d7 100755 --- a/scripts/install +++ b/scripts/install @@ -162,6 +162,9 @@ chown -R $app: "$final_path" "$datadir" # picked up by Yunohost's auto-redact mecanism admin_password="$(ynh_string_random --length=6)" +# Set the mysql.utf8mb4 config to true in config.php +exec_occ config:system:set mysql.utf8mb4 --type boolean --value="true" + # Install Nextcloud using a temporary admin user exec_occ maintenance:install \ --database "mysql" --database-name $db_name \ diff --git a/scripts/upgrade b/scripts/upgrade index a12f13a..26b9981 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -246,7 +246,7 @@ then exec_occ -V if [ "$(exec_occ config:system:get mysql.utf8mb4)" != "true" ]; then - exec_occ db:convert-mysql-charset + exec_occ maintenance:repair fi # Upgrade may fail if this app is enabled