1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flarum_ynh.git synced 2024-09-03 18:36:24 +02:00

Merge pull request #180 from YunoHost-Apps/testing

Testing
This commit is contained in:
tituspijean 2021-11-13 07:54:58 +01:00 committed by GitHub
commit e006a6d400
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 5 deletions

View file

@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
Flarum is a simple discussion platform for your website. It's fast and easy to use, with all the features you need to run a successful community.
**Shipped version:** 1.1.1~ynh1
**Shipped version:** 1.1.1~ynh2
**Demo:** https://discuss.flarum.org/d/21101-demos-come-to-flarum

View file

@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
Flarum est une plate-forme de discussion simple pour votre site Web. C'est rapide et facile à utiliser, avec toutes les fonctionnalités dont vous avez besoin pour gérer une communauté.
**Version incluse :** 1.1.1~ynh1
**Version incluse :** 1.1.1~ynh2
**Démo :** https://discuss.flarum.org/d/21101-demos-come-to-flarum

View file

@ -7,7 +7,7 @@
"fr": "Forum de nouvelle génération, simplement",
"de": "Forum der nächsten Generation leicht gemacht"
},
"version": "1.1.1~ynh1",
"version": "1.1.1~ynh2",
"url": "http://flarum.org/",
"upstream": {
"license": "MIT",

View file

@ -173,20 +173,25 @@ ynh_mysql_connect_as --user=$app --password="$db_pwd" --database=$db_name < ../c
case $language in
fr)
ynh_script_progression --message="Installing French extension..." --weight=2
ynh_exec_warn_less ynh_composer_exec --phpversion=$phpversion --workdir=$final_path --commands="require qiaeru/lang-french:^2.0.0"
ynh_exec_warn_less ynh_composer_exec --phpversion=$phpversion --workdir=$final_path --commands="require qiaeru/lang-french:*"
activate_flarum_extension $db_name "qiaeru-lang-french"
sql_command="UPDATE \`settings\` SET \`value\` = 'fr' WHERE \`settings\`.\`key\` = 'default_locale'"
ynh_mysql_execute_as_root --sql="$sql_command" --database=$db_name
;;
de)
ynh_script_progression --message="Installing German extension..." --weight=2
ynh_exec_warn_less ynh_composer_exec --phpversion=$phpversion --workdir=$final_path --commands="require kakifrucht/flarum-de:^1.0.0"
ynh_exec_warn_less ynh_composer_exec --phpversion=$phpversion --workdir=$final_path --commands="require kakifrucht/flarum-de:*"
activate_flarum_extension $db_name "kakifrucht-de"
sql_command="UPDATE \`settings\` SET \`value\` = 'de' WHERE \`settings\`.\`key\` = 'default_locale'"
ynh_mysql_execute_as_root --sql="$sql_command" --database=$db_name
;;
esac
# Set files and directories permissions
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
#=================================================
# GENERIC FINALIZATION
#=================================================

View file

@ -244,6 +244,11 @@ ynh_app_setting_set $app project_version "$project_version"
ynh_app_setting_set $app core_version "$core_version"
ynh_app_setting_set $app ldap_version "$ldap_version"
# Set files and directories permissions
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
#=================================================
# GENERIC FINALIZATION
#=================================================