Skip to content
Snippets Groups Projects
Unverified Commit 10bd9b24 authored by Casey's avatar Casey :recycle: Committed by Oliver Smith
Browse files

systemd/systemd-services: allow absolute paths (MR 5806) (MR 5563)

Assume that file paths not starting with "user/" or "system/" are
absolute paths.
parent be12b506
Branches
No related tags found
1 merge request!5563Add systemd to pmOS edge
......@@ -208,7 +208,13 @@ _service() {
install="" # defined later if presets are configured for the service
for f in $(eval "echo \$_${n}_sources"); do
install -Dm644 "$srcdir/$(flatpath "$f")" "$subpkgdir"/usr/lib/systemd/"$f"
prefix="$subpkgdir"
# If the path starts with "user" or "system", install under /usr/lib/systemd
# otherwise treat it as a full path
if echo "user system" | grep -q "${f%%/*}"; then
prefix="$prefix/usr/lib/systemd"
fi
install -Dm644 "$srcdir/$(flatpath "$f")" "$prefix/$f"
done
for t in user system; do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment