From 64bec9660a6d74180e3a5eaa7104c5844ce4f91b Mon Sep 17 00:00:00 2001 From: Kevin Yue Date: Fri, 27 May 2022 21:32:33 +0800 Subject: [PATCH] packaging: fix postinst for debian --- .vscode/settings.json | 5 ++++- debian/postinst | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 3efe05c..b70e28c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -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" } -} \ No newline at end of file +} diff --git a/debian/postinst b/debian/postinst index 6d3ee77..bba5b9e 100644 --- a/debian/postinst +++ b/debian/postinst @@ -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