mirror of
https://github.com/YunoHost-Apps/flarum_ynh.git
synced 2024-09-03 18:36:24 +02:00
commit
e006a6d400
5 changed files with 15 additions and 5 deletions
|
@ -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.
|
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
|
**Demo:** https://discuss.flarum.org/d/21101-demos-come-to-flarum
|
||||||
|
|
||||||
|
|
|
@ -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é.
|
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
|
**Démo :** https://discuss.flarum.org/d/21101-demos-come-to-flarum
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
"fr": "Forum de nouvelle génération, simplement",
|
"fr": "Forum de nouvelle génération, simplement",
|
||||||
"de": "Forum der nächsten Generation leicht gemacht"
|
"de": "Forum der nächsten Generation leicht gemacht"
|
||||||
},
|
},
|
||||||
"version": "1.1.1~ynh1",
|
"version": "1.1.1~ynh2",
|
||||||
"url": "http://flarum.org/",
|
"url": "http://flarum.org/",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|
|
@ -173,20 +173,25 @@ ynh_mysql_connect_as --user=$app --password="$db_pwd" --database=$db_name < ../c
|
||||||
case $language in
|
case $language in
|
||||||
fr)
|
fr)
|
||||||
ynh_script_progression --message="Installing French extension..." --weight=2
|
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"
|
activate_flarum_extension $db_name "qiaeru-lang-french"
|
||||||
sql_command="UPDATE \`settings\` SET \`value\` = 'fr' WHERE \`settings\`.\`key\` = 'default_locale'"
|
sql_command="UPDATE \`settings\` SET \`value\` = 'fr' WHERE \`settings\`.\`key\` = 'default_locale'"
|
||||||
ynh_mysql_execute_as_root --sql="$sql_command" --database=$db_name
|
ynh_mysql_execute_as_root --sql="$sql_command" --database=$db_name
|
||||||
;;
|
;;
|
||||||
de)
|
de)
|
||||||
ynh_script_progression --message="Installing German extension..." --weight=2
|
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"
|
activate_flarum_extension $db_name "kakifrucht-de"
|
||||||
sql_command="UPDATE \`settings\` SET \`value\` = 'de' WHERE \`settings\`.\`key\` = 'default_locale'"
|
sql_command="UPDATE \`settings\` SET \`value\` = 'de' WHERE \`settings\`.\`key\` = 'default_locale'"
|
||||||
ynh_mysql_execute_as_root --sql="$sql_command" --database=$db_name
|
ynh_mysql_execute_as_root --sql="$sql_command" --database=$db_name
|
||||||
;;
|
;;
|
||||||
esac
|
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
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -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 core_version "$core_version"
|
||||||
ynh_app_setting_set $app ldap_version "$ldap_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
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue