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 22:18:47 +02:00 committed by GitHub
parent 05e3095221
commit b79ca25278
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -162,13 +162,13 @@ ynh_system_user_create "$app"
#================================================= #=================================================
# LDAP config # LDAP config
plugins_conf_path=$plugins_path/configurations #plugins_conf_path=$plugins_path/configurations
plugins_conf_file=$plugins_conf_path/LDAP-Auth.xml #plugins_conf_file=$plugins_conf_path/LDAP-Auth.xml
mkdir -p "$plugins_conf_path" #mkdir -p "$plugins_conf_path"
cp ../conf/LDAP-Auth.xml "$plugins_conf_file" #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 # Load services once to generate system.xml
systemctl enable jellyfin systemctl enable jellyfin
@ -186,9 +186,9 @@ ynh_replace_string --match_string="<BaseUrl />" --replace_string="<BaseUrl>$path
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"
# Setting up the admin user # Setting up the admin user
userdir="/etc/jellyfin/users/$admin" #userdir="/etc/jellyfin/users/$admin"
mkdir -p "$userdir" #mkdir -p "$userdir"
cp ../conf/policy.xml "$userdir/" #cp ../conf/policy.xml "$userdir/"
#================================================= #=================================================
# STORE THE CONFIG FILE CHECKSUM # STORE THE CONFIG FILE CHECKSUM