1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/yunorunner_ynh.git synced 2024-09-03 20:36:13 +02:00

Stupid lack of templating system in 2021

This commit is contained in:
Alexandre Aubin 2021-01-14 23:07:40 +01:00 committed by GitHub
parent e7c7971292
commit 7b3acfc9b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -143,6 +143,8 @@ ynh_add_systemd_config
# CHANGE PORT IN YUNORUNNER
#=================================================
ynh_replace_string "__DOMAIN__" "$domain" "/etc/systemd/system/$app.service"
ynh_replace_string "__PATH__" "$path_url" "/etc/systemd/system/$app.service"
ynh_replace_string "__PORT__" "$port" "/etc/systemd/system/$app.service"
# Calculate and store the config file checksum into the app settings
ynh_store_file_checksum "/etc/systemd/system/$app.service"