1
0
Fork 0
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:
tituspijean 2022-01-16 22:20:40 +01:00
parent 0e362cb4da
commit 2ef0d0cb1f
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
2 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -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"