From 7ee1c573bf73c5f23e66a4502e20df5109596af9 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 4 Jun 2013 14:46:24 +0200 Subject: Fix Simon's stupid bugs in vmplayer and policykit! --- remote/modules/policykit/policykit.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'remote/modules/policykit/policykit.build') diff --git a/remote/modules/policykit/policykit.build b/remote/modules/policykit/policykit.build index 7c2f3991..591c180f 100644 --- a/remote/modules/policykit/policykit.build +++ b/remote/modules/policykit/policykit.build @@ -15,7 +15,7 @@ build () { post_copy() { local POLPATH="$(grep '/polkitd$' "$COPYLIST" | head -1 | sed -e 's/[\/&]/\\&/g')" - sed -i "s/%%POLKITD%%/${POLPATH}/g" "$TARGET_BUILD_DIR/etc/systemd/system/polkitd.service" + [ -n "$POLPATH" ] && sed -i "s/%%POLKITD%%/${POLPATH}/g" "$TARGET_BUILD_DIR/etc/systemd/system/polkitd.service" #Add Polkit User/Group/Shadow to Stage3.2 pinfo "Adding polkitd user to target system..." add_user "polkitd" -- cgit v1.2.3-55-g7522