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]
|
||||
ip = 127.0.0.1
|
||||
port = __PORT__
|
||||
base_url = __PATH__
|
||||
base_url = __PATH_URL__
|
||||
path_mappings = []
|
||||
debug = False
|
||||
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
|
||||
|
||||
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)
|
||||
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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue