1
0
Fork 0
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:
liberodark 2020-05-30 21:29:10 +02:00 committed by GitHub
parent a4f0c85301
commit 1a914c84c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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" ynh_replace_string --match_string="__BINDPASSWORD__" --replace_string="$password" --target_file="$plugins_conf_file"
chown -R jellyfin:jellyfin "$plugins_path" 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 # Port config
ynh_replace_string --match_string="<HttpServerPortNumber>8096</HttpServerPortNumber>" --replace_string="<HttpServerPortNumber>$port</HttpServerPortNumber>" --target_file="/etc/jellyfin/system.xml" 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 # STORE THE CONFIG FILE CHECKSUM
#================================================= #=================================================
@ -202,6 +211,5 @@ if [ "$is_public" -eq 1 ]; then
fi fi
# Reload services # Reload services
systemctl enable jellyfin
systemctl start jellyfin systemctl start jellyfin
systemctl reload nginx systemctl reload nginx