1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/prowlarr_ynh.git synced 2024-09-03 20:16:07 +02:00

try to fix modified file

This commit is contained in:
Salamandar 2024-03-13 01:59:33 +01:00
parent c0b069384a
commit 2b60cf1ae5
4 changed files with 6 additions and 9 deletions

View file

@ -25,6 +25,9 @@ ynh_change_url_nginx_config
# UPDATE CONFIGURATION FILE
#=================================================
# Add newline at end of file if required
sed -i -e '$a\' "$data_dir/config.xml"
ynh_replace_string --match_string="<UrlBase>$old_path</UrlBase>" --replace_string="<UrlBase>$new_path</UrlBase>" --target_file="$data_dir/config.xml"
#=================================================

View file

@ -68,9 +68,6 @@ ynh_script_progression --message="Starting $app's systemd service..." --weight=2
# Start a systemd service
ynh_systemd_action --service_name="$app" --action="start" --log_path="systemd" --line_match="CommandExecutor: Starting"
# FIXME Update config.xml checksum, for a mere file ending with or without a new line...
ynh_store_file_checksum --file="$data_dir/config.xml"
#=================================================
# END OF SCRIPT
#=================================================

View file

@ -65,9 +65,6 @@ ynh_systemd_action --service_name="$app" --action="start" --log_path="systemd" -
ynh_systemd_action --service_name=nginx --action=reload
# FIXME Update config.xml checksum, for a mere file ending with or without a new line...
ynh_store_file_checksum --file="$data_dir/config.xml"
#=================================================
# END OF SCRIPT
#=================================================

View file

@ -30,6 +30,9 @@ chown -R "$app:" "$install_dir"
#=================================================
ynh_script_progression --message="Updating the configuration file..." --weight=1
# Add newline at end of file if required
sed -i -e '$a\' "$data_dir/config.xml"
ynh_add_config --template="config.xml" --destination="$data_dir/config.xml"
chmod 400 "$data_dir/config.xml"
@ -58,9 +61,6 @@ ynh_script_progression --message="Starting $app's systemd service..." --weight=1
ynh_systemd_action --service_name="$app" --action="start" --log_path="systemd" --line_match="CommandExecutor: Starting"
# FIXME Update config.xml checksum, for a mere file ending with or without a new line...
ynh_store_file_checksum --file="$data_dir/config.xml"
#=================================================
# END OF SCRIPT
#=================================================