From 97ef8caa174f0b78b38aac3bc9568826e7a7f0ac Mon Sep 17 00:00:00 2001 From: EliasSchriefer Date: Sun, 6 Dec 2020 16:49:18 +0100 Subject: [PATCH] Update Makefile --- Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Makefile b/Makefile index e101f0b..1b1f23c 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,17 @@ install-debug: @sudo systemctl --runtime link sfsmcd/sfsmc-debug@.service .PHONY: install-debug +install-dbus: + @if [[ ! -e /usr/share/dbus-1/system.d/ ]]; then \ + echo DBus security policy files are not located at the expected path;\ + echo Please install the security policy for 'org.ddnss.sfs.mc' manually;\ + echo " \`sudo cp sfsmcd/org.ddnss.sfs.mc.conf \`";\ + exit 1;\ + elif [[ ! -e /usr/share/dbus-1/system.d/org.ddnss.sfs.mc.conf ]]; then \ + sudo cp sfsmcd/org.ddnss.sfs.mc.conf /usr/share/dbus-1/system.d/;\ + fi +.PHONY: install-dbus + journalctl: @journalctl -efSnow -usfsmc-debug@$$(cd ..; pwd) -ocat .PHONY: journalctl