mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-05-20 07:26:58 -04:00
packaging: add postinst for debian
This commit is contained in:
1 parent
048aa4799f
commit
0619e91bf5
2 files changed
+11
-5
No files matched your search
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
# 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
|
||||
|
||||
#DEBHELPER#
|
||||
Reference in new issue
Block a user