mirror of
https://github.com/YunoHost-Apps/bazarr_ynh.git
synced 2024-09-03 18:06:27 +02:00
Store Flask and API key
and attempt to write "/" as base url instead of nothing
This commit is contained in:
parent
0e362cb4da
commit
2ef0d0cb1f
2 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
[general]
|
[general]
|
||||||
ip = 127.0.0.1
|
ip = 127.0.0.1
|
||||||
port = __PORT__
|
port = __PORT__
|
||||||
base_url = __PATH__
|
base_url = __PATH_URL__
|
||||||
path_mappings = []
|
path_mappings = []
|
||||||
debug = False
|
debug = False
|
||||||
branch = master
|
branch = master
|
||||||
|
|
|
@ -138,7 +138,10 @@ ynh_systemd_action --service_name=$app --action="stop" --line_match="Bazarr exit
|
||||||
detect_and_read_radarr_and_sonarr_settings
|
detect_and_read_radarr_and_sonarr_settings
|
||||||
|
|
||||||
flask_key=$(ynh_string_random --length=32)
|
flask_key=$(ynh_string_random --length=32)
|
||||||
|
ynh_app_setting_set --app=$app --key=flask_key --value=$flask_key
|
||||||
|
|
||||||
api_key=$(ynh_string_random --length=32)
|
api_key=$(ynh_string_random --length=32)
|
||||||
|
ynh_app_setting_set --app=$app --key=api_key --value=$api_key
|
||||||
|
|
||||||
ynh_add_config --template="config.ini" --destination="$final_path/data/config/config.ini"
|
ynh_add_config --template="config.ini" --destination="$final_path/data/config/config.ini"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue