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

remove secretSession

This commit is contained in:
ericgaspar 2020-06-25 12:09:17 +02:00
parent d54b6c4189
commit 8e426b02bd
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 0 additions and 5 deletions

View file

@ -3,7 +3,6 @@
"protocolUseSSL": true,
"domain": "__DOMAIN__",
"port": "__PORT__",
"sessionSecret": "__SESSION__",
"loglevel": "info",
"useCDN": false,
"allowGravatar": false,

View file

@ -26,7 +26,6 @@ ynh_abort_if_errors
domain=$YNH_APP_ARG_DOMAIN
path_url="/"
is_public=$YNH_APP_ARG_IS_PUBLIC
session=$(ynh_string_random --length=30)
app=$YNH_APP_INSTANCE_NAME
@ -152,7 +151,6 @@ ynh_replace_string --match_string="__DB_USER__" --replace_string="$db_user" --t
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"
ynh_replace_string --match_string="__SESSION__" --replace_string="$session" --target_file="../conf/config.json.example"
cp ../conf/config.json.example "$final_path/config.json"

View file

@ -21,7 +21,6 @@ path_url=$(ynh_app_setting_get --app=$app --key=path)
is_public=$(ynh_app_setting_get --app=$app --key=is_public)
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
port=$(ynh_app_setting_get --app=$app --key=port)
session=$(ynh_app_setting_get --app=$app --key=session)
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
db_user=$db_name
@ -147,7 +146,6 @@ ynh_replace_string --match_string="__DB_USER__" --replace_string="$db_user" --ta
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"
ynh_replace_string --match_string="__SESSION__" --replace_string="$session" --target_file="../conf/config.json.example"
cp ../conf/config.json.example "$final_path/config.json"