From f03138790d27b2ce28e6db5756b553e0115321f0 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Fri, 5 Oct 2018 16:29:51 +0200 Subject: afm-unit.conf: force symbolic link on update Forcing symbolic link update ensures that if the value changes the link will be overwriten. Otherwise the link always keeps the old path until a system reboot or a manual removal of the link file. Change-Id: Ib9d8f267a8665edd75ce04f77eb70c4b0a4b8e9f Signed-off-by: Romain Forlot --- conf/unit/afm-unit.conf.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'conf/unit/afm-unit.conf.in') diff --git a/conf/unit/afm-unit.conf.in b/conf/unit/afm-unit.conf.in index 74c57ea..e1d2112 100644 --- a/conf/unit/afm-unit.conf.in +++ b/conf/unit/afm-unit.conf.in @@ -277,7 +277,7 @@ After=afm-user-setup@%i.service [Service] Type=oneshot RemainAfterExit=yes -ExecStart=/bin/ln -s {{:#metadata.install-dir}}/{{value}} @afm_users_rundir@/%i/apis/link/{{name}} +ExecStart=/bin/ln -sf {{:#metadata.install-dir}}/{{value}} @afm_users_rundir@/%i/apis/link/{{name}} %end systemd-unit {{/provided-binding}} {{/targets}} -- cgit 1.2.3-korg