mirror of
https://github.com/YunoHost-Apps/jellyfin_ynh.git
synced 2024-09-03 19:26:29 +02:00
Update install
This commit is contained in:
parent
a4f0c85301
commit
1a914c84c6
1 changed files with 9 additions and 1 deletions
|
@ -164,9 +164,18 @@ cp ../conf/LDAP-Auth.xml "$plugins_conf_file"
|
|||
ynh_replace_string --match_string="__BINDPASSWORD__" --replace_string="$password" --target_file="$plugins_conf_file"
|
||||
chown -R jellyfin:jellyfin "$plugins_path"
|
||||
|
||||
# Load services once to generate system.xml
|
||||
systemctl enable jellyfin
|
||||
systemctl start jellyfin
|
||||
sleep 5
|
||||
systemctl stop jellyfin
|
||||
|
||||
# Port config
|
||||
ynh_replace_string --match_string="<HttpServerPortNumber>8096</HttpServerPortNumber>" --replace_string="<HttpServerPortNumber>$port</HttpServerPortNumber>" --target_file="/etc/jellyfin/system.xml"
|
||||
|
||||
# BaseUrl
|
||||
ynh_replace_string --match_string="<BaseUrl />" --replace_string="<BaseUrl>$path_url</BaseUrl>" --target_file="/etc/jellyfin/system.xml"
|
||||
|
||||
#=================================================
|
||||
# STORE THE CONFIG FILE CHECKSUM
|
||||
#=================================================
|
||||
|
@ -202,6 +211,5 @@ if [ "$is_public" -eq 1 ]; then
|
|||
fi
|
||||
|
||||
# Reload services
|
||||
systemctl enable jellyfin
|
||||
systemctl start jellyfin
|
||||
systemctl reload nginx
|
||||
|
|
Loading…
Add table
Reference in a new issue