packaging: fix postinst for debian

This commit is contained in:
Kevin Yue 2022-05-27 21:32:33 +08:00
parent 0619e91bf5
commit 64bec9660a
2 changed files with 5 additions and 2 deletions

View File

@ -22,5 +22,8 @@
"qicon": "cpp",
"qsslsocket": "cpp",
"qapplication": "cpp"
},
"yaml.schemas": {
"https://json.schemastore.org/github-workflow.json": "file:///home/kevin/Documents/repos/GlobalProtect-openconnect/.github/workflows/build.yml"
}
}
}

2
debian/postinst vendored
View File

@ -3,7 +3,7 @@
set -e
# 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
sed -i "/LOGNAME/,+1s/user=\".*\"/user=\"$(logname)\"/" $dbus_conf
fi