1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/thelounge_ynh.git synced 2024-09-03 20:35:54 +02:00
This commit is contained in:
ericgaspar 2021-08-30 09:37:49 +02:00
parent 6a3a4ce536
commit ed8b754ade
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 10 additions and 0 deletions

View file

@ -2,6 +2,7 @@
; Manifest
domain="domain.tld"
path="/path"
admin="john"
is_public=1
password="password"
; Checks

View file

@ -47,6 +47,11 @@
"example": "/irc",
"default": "/irc"
},
{
"name": "admin",
"type": "user",
"example": "johndoe"
},
{
"name": "is_public",
"type": "boolean",

View file

@ -26,6 +26,8 @@ ynh_abort_if_errors
domain=$YNH_APP_ARG_DOMAIN
path_url=$YNH_APP_ARG_PATH
is_public=$YNH_APP_ARG_IS_PUBLIC
admin=$YNH_APP_ARG_ADMIN
app=$YNH_APP_INSTANCE_NAME
#=================================================
@ -48,6 +50,7 @@ ynh_script_progression --message="Storing installation settings..."
ynh_app_setting_set --app=$app --key=domain --value=$domain
ynh_app_setting_set --app=$app --key=path --value=$path_url
ynh_app_setting_set --app=$app --key=config_path --value=$config_path
ynh_app_setting_set --app=$app --key=admin --value=$admin
#=================================================
# STANDARD MODIFICATIONS
@ -141,6 +144,7 @@ pushd $final_path
yarn add webpack webpack-dev-server --dev
ynh_exec_warn_less ynh_exec_as $app NODE_ENV=production yarn build
ynh_exec_warn_less ynh_exec_as $app yarn link
ynh_exec_as $app thelounge add $admin
popd
#=================================================