mirror of
https://github.com/YunoHost-Apps/spacedeck_ynh.git
synced 2024-09-03 20:26:14 +02:00
Fix change url
This commit is contained in:
parent
9528d6b2b6
commit
8547062da6
3 changed files with 14 additions and 9 deletions
|
@ -28,6 +28,10 @@ ynh_script_progression --message="Loading installation settings..." --time --wei
|
|||
|
||||
# Needed for helper "ynh_add_nginx_config"
|
||||
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||
port=$(ynh_app_setting_get --app=$app --key=port)
|
||||
datadir=$(ynh_app_setting_get --app=$app --key=datadir)
|
||||
api_secret=$(ynh_app_setting_get --app=$app --key=api_secret)
|
||||
invite_secret=$(ynh_app_setting_get --app=$app --key=invite_secret)
|
||||
|
||||
# Add settings here as needed by your application
|
||||
#db_name=$(ynh_app_setting_get --app=$app --key=db_name)
|
||||
|
|
|
@ -104,12 +104,6 @@ ynh_add_nginx_config
|
|||
#=================================================
|
||||
ynh_script_progression --message="Installing NodeJS dependencies..." --time --weight=1
|
||||
|
||||
invite_secret=$(ynh_string_random --length=32)
|
||||
api_secret=$(ynh_string_random --length=32)
|
||||
|
||||
ynh_app_setting_set --app=$app --key=invite_secret --value=$invite_secret
|
||||
ynh_app_setting_set --app=$app --key=api_secret --value=$api_secret
|
||||
|
||||
pushd $final_path
|
||||
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm --loglevel=error install
|
||||
ynh_exec_as $app $ynh_node_load_PATH $ynh_npm --loglevel=error audit fix
|
||||
|
@ -134,6 +128,12 @@ chown -R $app:www-data "$datadir"
|
|||
#=================================================
|
||||
ynh_script_progression --message="Adding a configuration file..." --time --weight=1
|
||||
|
||||
invite_secret=$(ynh_string_random --length=32)
|
||||
api_secret=$(ynh_string_random --length=32)
|
||||
|
||||
ynh_app_setting_set --app=$app --key=invite_secret --value=$invite_secret
|
||||
ynh_app_setting_set --app=$app --key=api_secret --value=$api_secret
|
||||
|
||||
ynh_add_config --template="default.json" --destination="$final_path/config/default.json"
|
||||
|
||||
chmod 400 "$final_path/config/default.json"
|
||||
|
|
|
@ -18,10 +18,11 @@ app=$YNH_APP_INSTANCE_NAME
|
|||
|
||||
domain=$(ynh_app_setting_get --app=$app --key=domain)
|
||||
path_url=$(ynh_app_setting_get --app=$app --key=path)
|
||||
admin=$(ynh_app_setting_get --app=$app --key=admin)
|
||||
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||
language=$(ynh_app_setting_get --app=$app --key=language)
|
||||
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
|
||||
port=$(ynh_app_setting_get --app=$app --key=port)
|
||||
datadir=$(ynh_app_setting_get --app=$app --key=datadir)
|
||||
api_secret=$(ynh_app_setting_get --app=$app --key=api_secret)
|
||||
invite_secret=$(ynh_app_setting_get --app=$app --key=invite_secret)
|
||||
|
||||
#=================================================
|
||||
# CHECK VERSION
|
||||
|
|
Loading…
Add table
Reference in a new issue