Skip to content

Commit f8727f2

Browse files
committed
chore: add ConditionPathExists back
This does indeed work on symlinks; The actual reason for it not working in this case was SELinux. Add this back as a more efficient case on files, and keep the ExecCondition as a failsafe for symlinks.
1 parent 08baa87 commit f8727f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

files/system/usr/lib/systemd/system/secureblue-unbound-key.service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
[Unit]
1111
Description=Secureblue Unbound Root Key Installation Service
12+
ConditionPathExists=!/var/lib/unbound/root.key
1213
After=local-fs.target
1314
Before=unbound.service unbound-anchor.service
1415
RequiresMountsFor=/var/lib

0 commit comments

Comments
 (0)