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