mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
Fix
This commit is contained in:
parent
3dfe44d4df
commit
2765ab4ef2
2 changed files with 4 additions and 1 deletions
|
@ -162,6 +162,9 @@ chown -R $app: "$final_path" "$datadir"
|
||||||
# picked up by Yunohost's auto-redact mecanism
|
# picked up by Yunohost's auto-redact mecanism
|
||||||
admin_password="$(ynh_string_random --length=6)"
|
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
|
# Install Nextcloud using a temporary admin user
|
||||||
exec_occ maintenance:install \
|
exec_occ maintenance:install \
|
||||||
--database "mysql" --database-name $db_name \
|
--database "mysql" --database-name $db_name \
|
||||||
|
|
|
@ -246,7 +246,7 @@ then
|
||||||
exec_occ -V
|
exec_occ -V
|
||||||
|
|
||||||
if [ "$(exec_occ config:system:get mysql.utf8mb4)" != "true" ]; then
|
if [ "$(exec_occ config:system:get mysql.utf8mb4)" != "true" ]; then
|
||||||
exec_occ db:convert-mysql-charset
|
exec_occ maintenance:repair
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Upgrade may fail if this app is enabled
|
# Upgrade may fail if this app is enabled
|
||||||
|
|
Loading…
Add table
Reference in a new issue