1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/codimd_ynh.git synced 2024-09-03 18:16:32 +02:00

Update install

This commit is contained in:
ericgaspar 2020-05-28 19:02:56 +02:00
parent 038a9dd535
commit 93c358c0bc
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -55,6 +55,7 @@ ynh_app_setting_set --app="$app" --key="port" --value="$port"
#=================================================
ynh_script_progression --message="Storing installation settings..." --weight=2
ynh_app_setting_set --app="$app" --key="app" --value="$app"
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="is_public" --value="$is_public"
@ -116,6 +117,7 @@ ynh_replace_string --match_string="__PATH__" --replace_string="${path_url:1
ynh_replace_string --match_string="__DB_USER__" --replace_string="$db_user" --target_file="../conf/config.json.example"
ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="../conf/config.json.example"
ynh_replace_string --match_string="__DB_PASS__" --replace_string="$db_pwd" --target_file="../conf/config.json.example"
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="../conf/config.json.example"
cp ../conf/config.json.example "$final_path/config.json"