1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jackett_ynh.git synced 2024-09-03 19:26:28 +02:00
jackett_ynh/scripts/_common.sh

30 lines
916 B
Bash
Raw Permalink Normal View History

2021-05-21 14:24:10 +02:00
#!/bin/bash
#=================================================
# COMMON VARIABLES
#=================================================
#=================================================
# PERSONAL HELPERS
#=================================================
2024-02-25 22:46:00 +01:00
_set_BasePathOverride() {
if [[ "$path" == "/" ]]; then
path_or_null=null
else
path_or_null="\"$path\""
fi
jq ".BasePathOverride = $path_or_null" "$install_dir/.config/Jackett/ServerConfig.json" \
> "$install_dir/.config/Jackett/ServerConfig.json.tmp"
mv "$install_dir/.config/Jackett/ServerConfig.json.tmp" "$install_dir/.config/Jackett/ServerConfig.json"
}
2021-05-21 14:24:10 +02:00
#=================================================
# EXPERIMENTAL HELPERS
#=================================================
#=================================================
# FUTURE OFFICIAL HELPERS
#=================================================