From 048aa4799f6d0f0360d4e7e4f49a8f09504284f8 Mon Sep 17 00:00:00 2001 From: Kevin Yue Date: Thu, 26 May 2022 15:33:39 +0800 Subject: [PATCH] test: test debian packaging --- debian/rules | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/debian/rules b/debian/rules index cab5fa7..5d96a41 100755 --- a/debian/rules +++ b/debian/rules @@ -7,13 +7,12 @@ export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed export DEBIAN_PACKAGE=1 +dbus_conf = /usr/share/dbus-1/system.d/com.yuezk.qt.GPService.conf + %: dh $@ override_dh_installsystemd: # Update the the dbus user to logname - dbus_conf="/usr/share/dbus-1/system.d/com.yuezk.qt.GPService.conf" - if [ -f "${dbus_conf}" ]; then - sed -i "/LOGNAME/,+1s/user=\".*\"/user=\"$(logname)\"/" "${dbus_conf}" - fi + if [ -f $(dbus_conf) ] ; then sed -i "/LOGNAME/,+1s/user=\".*\"/user=\"`logname`\"/" $(dbus_conf) ; fi dh_installsystemd gpservice.service