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

Make user file permissions are correct before starting services

This commit is contained in:
tituspijean 2021-05-15 10:59:49 +02:00
parent 12a73b2951
commit 22785a05fc
2 changed files with 6 additions and 0 deletions

View file

@ -114,6 +114,9 @@ fi
#=================================================
ynh_script_progression --message="Configuring the settings..." --weight=1
# Set permissions to app files
chown -R $app: $final_path
# Load services once to generate system.xml
ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd" --line_match="Started Jellyfin Media Server" --timeout=15
ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" --line_match="Stopped Jellyfin Media Server" --timeout=15

View file

@ -132,6 +132,9 @@ if [ -f "/etc/jellyfin/network.xml" ]; then
ynh_backup_if_checksum_is_different --file="$config_path/network.xml"
ynh_backup_if_checksum_is_different --file="$config_path/system.xml"
# Set permissions to app files
chown -R $app: $final_path
# Load services once to generate network.xml
ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd" --line_match="Started Jellyfin Media Server" --timeout=15
ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" --line_match="Stopped Jellyfin Media Server" --timeout=15