Fix gp-service name

This commit is contained in:
Kevin Yue 2024-03-28 21:45:01 +08:00
parent e602b3b018
commit e69de98884
2 changed files with 4 additions and 4 deletions

View File

@ -23,10 +23,10 @@ install:
# Install the service # Install the service
if [ $(INCLUDE_SYSTEMD) -eq 1 ]; then \ if [ $(INCLUDE_SYSTEMD) -eq 1 ]; then \
install -Dm644 artifacts/usr/lib/systemd/system/gpgui.service $(DESTDIR)/usr/lib/systemd/system/gpgui.service; \ install -Dm644 artifacts/usr/lib/systemd/system/gp-suspend.service $(DESTDIR)/usr/lib/systemd/system/gp-suspend.service; \
if [ $(ENABLE_SERVICE) -eq 1 ]; then \ if [ $(ENABLE_SERVICE) -eq 1 ]; then \
systemctl --system daemon-reload; \ systemctl --system daemon-reload; \
systemctl enable gpgui.service; \ systemctl enable gp-suspend.service; \
fi; \ fi; \
fi fi

View File

@ -1,6 +1,6 @@
post_install() { post_install() {
systemctl --system daemon-reload systemctl --system daemon-reload
systemctl enable gpservice.service systemctl enable gp-suspend.service
} }
post_upgrade() { post_upgrade() {
@ -8,5 +8,5 @@ post_upgrade() {
} }
post_remove() { post_remove() {
systemctl disable gpservice.service systemctl disable gp-suspend.service
} }