mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
Merge 4dc15d2dbd
into aca04bd274
This commit is contained in:
commit
aec63f2d8f
2 changed files with 19 additions and 1 deletions
|
@ -48,6 +48,13 @@ ram.runtime = "512M"
|
||||||
type = "group"
|
type = "group"
|
||||||
default = "visitors"
|
default = "visitors"
|
||||||
|
|
||||||
|
[install.language]
|
||||||
|
ask.en = "Choose the application language"
|
||||||
|
ask.fr = "Choisissez la langue de l'application"
|
||||||
|
type = "select"
|
||||||
|
choices = ["en_US", "es_ES", "it_IT", "fr_FR", "de_DE"]
|
||||||
|
default = "en_US"
|
||||||
|
|
||||||
[install.user_home]
|
[install.user_home]
|
||||||
ask.en = "Access the users home folder from Nextcloud?"
|
ask.en = "Access the users home folder from Nextcloud?"
|
||||||
ask.fr = "Accéder au dossier personnel des utilisateurs depuis Nextcloud ?"
|
ask.fr = "Accéder au dossier personnel des utilisateurs depuis Nextcloud ?"
|
||||||
|
|
|
@ -96,7 +96,18 @@ ynh_script_progression --message="Configuring $app..." --weight=8
|
||||||
# Set the mysql.utf8mb4 config to true in config.php
|
# Set the mysql.utf8mb4 config to true in config.php
|
||||||
exec_occ config:system:set mysql.utf8mb4 --type boolean --value="true"
|
exec_occ config:system:set mysql.utf8mb4 --type boolean --value="true"
|
||||||
|
|
||||||
# move the logs from the data_dir to the standard /var/log
|
# Set default language in config.php
|
||||||
|
raw_language=$(echo "$language" | awk -F'_' '{print $1}')
|
||||||
|
exec_occ config:system:set default_language --value="$raw_language"
|
||||||
|
|
||||||
|
# Set default locale in config.php
|
||||||
|
exec_occ config:system:set default_locale --value="$language"
|
||||||
|
|
||||||
|
# Set default phone region in config.php
|
||||||
|
country=$(echo "$language" | awk -F'_' '{print $2}')
|
||||||
|
exec_occ config:system:set default_phone_region --value="$country"
|
||||||
|
|
||||||
|
# Move the logs from the data_dir to the standard /var/log
|
||||||
exec_occ config:system:set logfile --value="/var/log/$app/nextcloud.log"
|
exec_occ config:system:set logfile --value="/var/log/$app/nextcloud.log"
|
||||||
|
|
||||||
# Ensure that UpdateNotification app is disabled
|
# Ensure that UpdateNotification app is disabled
|
||||||
|
|
Loading…
Add table
Reference in a new issue