mirror of
https://github.com/YunoHost-Apps/flarum_ynh.git
synced 2024-09-03 18:36:24 +02:00
remove bazaar
This commit is contained in:
parent
a3b0c8ce07
commit
f811e7f37c
5 changed files with 5 additions and 24 deletions
|
@ -31,7 +31,6 @@ Required parameters are:
|
||||||
- `public`, *true* by default, for guests to read the forum
|
- `public`, *true* by default, for guests to read the forum
|
||||||
- `title` of the forum
|
- `title` of the forum
|
||||||
- `language` can be English `en` (by default), French `fr`, and German `de`. Other languages are installable after installation like any other extensions
|
- `language` can be English `en` (by default), French `fr`, and German `de`. Other languages are installable after installation like any other extensions
|
||||||
- `bazaar_extension` to install the extension marketplace (*false* by default), to avoid using the command line to add new extensions.
|
|
||||||
|
|
||||||
After installation, simply open your browser to Flarum's page. First loading may be a bit longer as assets are generated.
|
After installation, simply open your browser to Flarum's page. First loading may be a bit longer as assets are generated.
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
path="/path" (PATH)
|
path="/path" (PATH)
|
||||||
admin="john" (USER)
|
admin="john" (USER)
|
||||||
title="Test flarum"
|
title="Test flarum"
|
||||||
bazaar_extension=0
|
|
||||||
language="en"
|
language="en"
|
||||||
is_public=1 (PUBLIC|public=1|private=0)
|
is_public=1 (PUBLIC|public=1|private=0)
|
||||||
; Checks
|
; Checks
|
||||||
|
|
|
@ -89,16 +89,6 @@
|
||||||
},
|
},
|
||||||
"default": true
|
"default": true
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "bazaar_extension",
|
|
||||||
"type": "boolean",
|
|
||||||
"ask": {
|
|
||||||
"en": "Do you want to install Bazaar extension, extensions provider for Flarum?",
|
|
||||||
"fr": "Voulez-vous installer l'extension Bazaar, fournisseur d'extensions pour Flarum ?",
|
|
||||||
"de": "Wollen Sie die Bazaar Erweiterung installieren ?"
|
|
||||||
},
|
|
||||||
"default": false
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "language",
|
"name": "language",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|
|
@ -34,7 +34,6 @@ admin=$YNH_APP_ARG_ADMIN
|
||||||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||||
language=$YNH_APP_ARG_LANGUAGE
|
language=$YNH_APP_ARG_LANGUAGE
|
||||||
title=$YNH_APP_ARG_TITLE
|
title=$YNH_APP_ARG_TITLE
|
||||||
bazaar_extension=$YNH_APP_ARG_BAZAAR_EXTENSION
|
|
||||||
|
|
||||||
admin_pwd=$(ynh_string_random --length=8)
|
admin_pwd=$(ynh_string_random --length=8)
|
||||||
admin_mail=$(ynh_user_get_info --username=$admin --key=mail)
|
admin_mail=$(ynh_user_get_info --username=$admin --key=mail)
|
||||||
|
@ -65,7 +64,6 @@ ynh_app_setting_set --app=$app --key=language --value=$language
|
||||||
ynh_app_setting_set --app=$app --key=project_version --value=$project_version
|
ynh_app_setting_set --app=$app --key=project_version --value=$project_version
|
||||||
ynh_app_setting_set --app=$app --key=core_version --value=$core_version
|
ynh_app_setting_set --app=$app --key=core_version --value=$core_version
|
||||||
ynh_app_setting_set --app=$app --key=ssowat_version --value=$ssowat_version
|
ynh_app_setting_set --app=$app --key=ssowat_version --value=$ssowat_version
|
||||||
ynh_app_setting_set --app=$app --key=bazaar_extension --value=$bazaar_extension
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STANDARD MODIFICATIONS
|
# STANDARD MODIFICATIONS
|
||||||
|
@ -217,11 +215,6 @@ case $language in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ $bazaar_extension -eq 1 ]; then
|
|
||||||
ynh_script_progression --message="Installing Bazaar extension..." --weight=2
|
|
||||||
ynh_composer_exec --phpversion=$phpversion --workdir=$final_path --commands="require extiverse/bazaar"
|
|
||||||
fi
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -94,6 +94,11 @@ fi
|
||||||
# Remove the v before version number
|
# Remove the v before version number
|
||||||
if [[ $old_project_version == "v*" ]]; then $old_project_version = ${old_project_version:1}; fi
|
if [[ $old_project_version == "v*" ]]; then $old_project_version = ${old_project_version:1}; fi
|
||||||
|
|
||||||
|
# Remove bazaar_extension if exists
|
||||||
|
if [ ! -z "$bazaar_extension" ]; then
|
||||||
|
ynh_app_setting_delete --app=$app --key=bazaar_extension
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -257,11 +262,6 @@ case $language in
|
||||||
esac
|
esac
|
||||||
ynh_print_info "You may need to manually enable your language extension in Flarum's admin panel."
|
ynh_print_info "You may need to manually enable your language extension in Flarum's admin panel."
|
||||||
|
|
||||||
if [ $bazaar_extension -eq 1 ]; then
|
|
||||||
ynh_script_progression --message="Installing Bazaar extension..." --weight=2
|
|
||||||
ynh_composer_exec --phpversion=$phpversion --workdir=$final_path --commands="require extiverse/bazaar"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Clear cache
|
# Clear cache
|
||||||
pushd $final_path
|
pushd $final_path
|
||||||
exec_as $app php$phpversion flarum cache:clear
|
exec_as $app php$phpversion flarum cache:clear
|
||||||
|
|
Loading…
Reference in a new issue