test: test debian packaging

This commit is contained in:
Kevin Yue 2022-05-26 15:06:17 +08:00
parent 1312d54d08
commit d03bbc339e

6
debian/rules vendored
View File

@ -11,9 +11,9 @@ export DEBIAN_PACKAGE=1
dh $@ dh $@
override_dh_installsystemd: override_dh_installsystemd:
# Update the the dbus user to logname # Update the the dbus user to logname
dbus_conf="/usr/share/dbus-1/system.d/com.yuezk.qt.GPService.conf" dbus_conf=/usr/share/dbus-1/system.d/com.yuezk.qt.GPService.conf
if [ -f dbus_conf ]; then if [ -f "${dbus_conf}" ]; then
sed -i "/LOGNAME/,+1s/user=\".*\"/user=\"$(logname)\"/" ${dbus_conf} sed -i "/LOGNAME/,+1s/user=\".*\"/user=\"$(logname)\"/" "${dbus_conf}"
fi fi
dh_installsystemd gpservice.service dh_installsystemd gpservice.service