make-sandboxed: handle more systemd service files
This commit is contained in:
parent
c570b7bf5d
commit
00d06db66a
|
@ -164,14 +164,13 @@ let
|
|||
$out/share/dbus-1/{services,system-services}/*.service \
|
||||
$out/{etc,lib,share}/systemd/{system,user}/*.service \
|
||||
; do
|
||||
# dbus and desktop files
|
||||
trySubstitute "$d" "Exec=%s/bin/"
|
||||
trySubstitute "$d" "Exec=%s/libexec/"
|
||||
trySubstitute "$d" "Exec=%s/sbin/"
|
||||
# systemd service files
|
||||
trySubstitute "$d" "ExecStart=%s/bin/"
|
||||
trySubstitute "$d" "ExecStart=%s/libexec/"
|
||||
trySubstitute "$d" "ExecStart=%s/sbin/"
|
||||
# Exec: dbus and desktop files
|
||||
# ExecStart,ExecReload: systemd service files
|
||||
for key in Exec ExecStart ExecReload; do
|
||||
for binLoc in bin libexec sbin; do
|
||||
trySubstitute "$d" "$key=%s/$binLoc/"
|
||||
done
|
||||
done
|
||||
done
|
||||
'';
|
||||
passthru = (prevAttrs.passthru or {}) // {
|
||||
|
|
Loading…
Reference in New Issue
Block a user