1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kavita_ynh.git synced 2024-09-03 19:26:30 +02:00
This commit is contained in:
Éric Gaspar 2023-06-04 22:42:18 +02:00
parent 0b889bf96c
commit 1f1e14b5c8
3 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,5 @@
{ {
"TokenKey": "super secret unguessable key", "TokenKey": "__KEY__",
"Port": __PORT__, "Port": __PORT__,
"IpAddresses": "", "IpAddresses": "",
"BaseUrl": "__URL_PATH__" "BaseUrl": "__URL_PATH__"

View file

@ -39,6 +39,7 @@ yunohost service add $app --description="Cross platform reading server" --log="/
#================================================= #=================================================
ynh_script_progression --message="Modifying a config file..." --weight=1 ynh_script_progression --message="Modifying a config file..." --weight=1
key=$(ynh_string_random --length=24)
url_path=${path#/} url_path=${path#/}
ynh_add_config --template="../conf/appsettings.json.example" --destination="$install_dir/config/appsettings.json" ynh_add_config --template="../conf/appsettings.json.example" --destination="$install_dir/config/appsettings.json"

View file

@ -45,6 +45,7 @@ chmod +x $install_dir/Kavita
#================================================= #=================================================
ynh_script_progression --message="Modifying a config file..." --weight=1 ynh_script_progression --message="Modifying a config file..." --weight=1
key=$(ynh_string_random --length=24)
url_path=${path#/} url_path=${path#/}
ynh_add_config --template="../conf/appsettings.json.example" --destination="$install_dir/config/appsettings.json" ynh_add_config --template="../conf/appsettings.json.example" --destination="$install_dir/config/appsettings.json"