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:
parent
12a73b2951
commit
22785a05fc
2 changed files with 6 additions and 0 deletions
|
@ -114,6 +114,9 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configuring the settings..." --weight=1
|
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
|
# 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="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
|
ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" --line_match="Stopped Jellyfin Media Server" --timeout=15
|
||||||
|
|
|
@ -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/network.xml"
|
||||||
ynh_backup_if_checksum_is_different --file="$config_path/system.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
|
# 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="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
|
ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" --line_match="Stopped Jellyfin Media Server" --timeout=15
|
||||||
|
|
Loading…
Add table
Reference in a new issue