mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-05-20 07:26:58 -04:00
Revert "fix: improve the dbus security"
This reverts commit ad178fe56c7ef4dbab409c341cec2d17ea4a65d8.
This commit is contained in:
parent
ad178fe56c
commit
4940830885
2
debian/rules
vendored
2
debian/rules
vendored
@ -11,5 +11,5 @@ 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
|
||||||
sed -i "/LOGNAME/,+1s/user=\".*\"/user=\"$(logname)\"/" /usr/share/dbus-1/system.d/com.yuezk.qt.GPService.conf
|
sed -i "/LOGNAME/N;s/user=\".*\"/user=\"$(logname)\"/" /usr/share/dbus-1/system.d/com.yuezk.qt.GPService.conf
|
||||||
dh_installsystemd gpservice.service
|
dh_installsystemd gpservice.service
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
post_install() {
|
post_install() {
|
||||||
# Update the the dbus user to logname
|
# Update the the dbus user to logname
|
||||||
sed -i "/LOGNAME/,+1s/user=\".*\"/user=\"$(logname)\"/" /usr/share/dbus-1/system.d/com.yuezk.qt.GPService.conf
|
sed -i "/LOGNAME/N;s/user=\".*\"/user=\"$(logname)\"/" /usr/share/dbus-1/system.d/com.yuezk.qt.GPService.conf
|
||||||
|
|
||||||
systemctl enable gpservice.service
|
systemctl enable gpservice.service
|
||||||
systemctl restart gpservice.service
|
systemctl restart gpservice.service
|
||||||
|
@ -33,7 +33,7 @@ A GlobalProtect VPN client (GUI) for Linux based on OpenConnect and built with Q
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
|
|
||||||
sed -i "/LOGNAME/,+1s/user=\".*\"/user=\"$(logname)\"/" /usr/share/dbus-1/system.d/com.yuezk.qt.GPService.conf
|
sed -i "/LOGNAME/N;s/user=\".*\"/user=\"$(logname)\"/" /usr/share/dbus-1/system.d/com.yuezk.qt.GPService.conf
|
||||||
|
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
%service_add_post gpservice.service
|
%service_add_post gpservice.service
|
||||||
|
Loading…
x
Reference in New Issue
Block a user