Revert "fix: improve the dbus security"

This reverts commit 829298bb84.
This commit is contained in:
Kevin Yue
2022-05-23 22:20:06 +08:00
parent 4940830885
commit ffa99d3783
6 changed files with 20 additions and 35 deletions

View File

@@ -1,11 +1,8 @@
post_install() {
# Update the the dbus user to logname
sed -i "/LOGNAME/N;s/user=\".*\"/user=\"$(logname)\"/" /usr/share/dbus-1/system.d/com.yuezk.qt.GPService.conf
systemctl enable gpservice.service
systemctl restart gpservice.service
}
post_upgrade() {
post_install
}
}

View File

@@ -33,8 +33,6 @@ A GlobalProtect VPN client (GUI) for Linux based on OpenConnect and built with Q
%post
sed -i "/LOGNAME/N;s/user=\".*\"/user=\"$(logname)\"/" /usr/share/dbus-1/system.d/com.yuezk.qt.GPService.conf
%if 0%{?suse_version}
%service_add_post gpservice.service
%else