1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00
This commit is contained in:
Éric Gaspar 2022-07-16 15:49:34 +02:00
parent 3dfe44d4df
commit 2765ab4ef2
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 4 additions and 1 deletions

View file

@ -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 \

View file

@ -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