Kevin Yue 177da7f3a2 Revert "Revert "fix: improve the dbus security""
This reverts commit ffa99d3783641b72a9ed96b187a38c59d3f67472.
2022-05-26 11:56:06 +08:00

12 lines
292 B
Plaintext
Executable File

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
}