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

change systemd service for change url

This commit is contained in:
Tobias Ollive 2021-12-29 21:43:18 +01:00
parent 57e5524828
commit db4a443da8

View file

@ -101,6 +101,15 @@ then
ynh_store_file_checksum --file="/etc/nginx/conf.d/$new_domain.d/$app.conf"
fi
#=================================================
# CHANGE SYSTEMD SERVICE
#=================================================
if [ $change_path -eq 1 ]
then
ynh_replace_string --match-string=$old_path --replace-string=$new_path --target-file="/etc/systemd/system/$app.service"
fi
#=================================================
# GENERIC FINALISATION
#=================================================