1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jellyfin_ynh.git synced 2024-09-03 19:26:29 +02:00

Fix config_path and final_path

This commit is contained in:
tituspijean 2021-05-25 13:33:48 +02:00
parent d0924453a6
commit 0f92a02dd6

View file

@ -40,10 +40,11 @@ if [[ ! "$architecture" =~ ^(amd64|arm64|armhf)$ ]]; then
fi
# If path keys do not exist, create them
if [ -z "$config_path" ]; then
config_path=/var/lib/jellyfin
# If config_path is mixed up with final_path, fix them
if [ -z "$config_path" ] || [[ $config_path = "/var/lib/jellyfin" ]]; then
config_path=/etc/jellyfin
final_path=/var/lib/jellyfin
ynh_app_setting_set --app=$app --key=config_path --value=$config_path
final_path=/etc/jellyfin
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
fi