mirror of
https://github.com/YunoHost-Apps/codimd_ynh.git
synced 2024-09-03 18:16:32 +02:00
Merge pull request #48 from fflorent/master
Augment tooBusyLag value (fixes message "I'm busy right now, try again later)
This commit is contained in:
commit
70ea30c220
4 changed files with 5 additions and 4 deletions
|
@ -13,6 +13,7 @@
|
||||||
"email": true,
|
"email": true,
|
||||||
"allowEmailRegister": true,
|
"allowEmailRegister": true,
|
||||||
"imageUploadType": "filesystem",
|
"imageUploadType": "filesystem",
|
||||||
|
"tooBusyLag": 1000,
|
||||||
"hsts": {
|
"hsts": {
|
||||||
"enable": true,
|
"enable": true,
|
||||||
"maxAgeSeconds": 31536000,
|
"maxAgeSeconds": 31536000,
|
|
@ -115,7 +115,7 @@ ynh_backup_if_checksum_is_different --file="$final_path/config.json"
|
||||||
domain=$new_domain
|
domain=$new_domain
|
||||||
path_url=$new_path
|
path_url=$new_path
|
||||||
|
|
||||||
cp ../conf/config.json.example "$final_path/config.json"
|
cp ../conf/config.json.default "$final_path/config.json"
|
||||||
|
|
||||||
ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$final_path/config.json"
|
ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$final_path/config.json"
|
||||||
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$final_path/config.json"
|
ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$final_path/config.json"
|
||||||
|
|
|
@ -143,7 +143,7 @@ ynh_add_systemd_config
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Modifying a config file..."
|
ynh_script_progression --message="Modifying a config file..."
|
||||||
|
|
||||||
cp ../conf/config.json.example "$final_path/config.json"
|
cp ../conf/config.json.default "$final_path/config.json"
|
||||||
|
|
||||||
# Main config File
|
# Main config File
|
||||||
ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$final_path/config.json"
|
ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$final_path/config.json"
|
||||||
|
@ -156,7 +156,7 @@ ynh_replace_string --match_string="__APP__" --replace_string="$app" --t
|
||||||
|
|
||||||
ynh_store_file_checksum --file="$final_path/config.json"
|
ynh_store_file_checksum --file="$final_path/config.json"
|
||||||
|
|
||||||
cp ../conf/.sequelizerc.example "$final_path/.sequelizerc"
|
cp ../conf/.sequelizerc.default "$final_path/.sequelizerc"
|
||||||
|
|
||||||
# DB Config File
|
# DB Config File
|
||||||
ynh_replace_string --match_string="__DB_USER__" --replace_string="$db_user" --target_file="$final_path/.sequelizerc"
|
ynh_replace_string --match_string="__DB_USER__" --replace_string="$db_user" --target_file="$final_path/.sequelizerc"
|
||||||
|
|
|
@ -139,7 +139,7 @@ ynh_script_progression --message="Modifying a config file..." --weight=2
|
||||||
|
|
||||||
ynh_backup_if_checksum_is_different --file="$final_path/config.json"
|
ynh_backup_if_checksum_is_different --file="$final_path/config.json"
|
||||||
|
|
||||||
cp ../conf/config.json.example "$final_path/config.json"
|
cp ../conf/config.json.default "$final_path/config.json"
|
||||||
|
|
||||||
# Main config File
|
# Main config File
|
||||||
ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$final_path/config.json"
|
ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$final_path/config.json"
|
||||||
|
|
Loading…
Add table
Reference in a new issue