Fix template variable in ynh_add_systemd_config

Merged as a micro decision, as it's only a small mistake.
This commit is contained in:
Maniack Crudelis 2019-02-10 20:51:40 +01:00 committed by GitHub
parent 55f19c7dcd
commit 76e1c2e395
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -121,7 +121,7 @@ ynh_add_systemd_config () {
# Manage arguments with getopts # Manage arguments with getopts
ynh_handle_getopts_args "$@" ynh_handle_getopts_args "$@"
local service="${service:-$app}" local service="${service:-$app}"
local template="${nonappend:-systemd.service}" local template="${template:-systemd.service}"
finalsystemdconf="/etc/systemd/system/$service.service" finalsystemdconf="/etc/systemd/system/$service.service"
ynh_backup_if_checksum_is_different --file="$finalsystemdconf" ynh_backup_if_checksum_is_different --file="$finalsystemdconf"