-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lact: handle systemd unit in postinst
- Enable lact.service during installation. - Conditionally reload systemd daemon and restart lact.service.
- Loading branch information
1 parent
0200b04
commit 69b75f6
Showing
5 changed files
with
31 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
abinfo "Installing .desktop and service file ..." | ||
install -Dm644 "$SRCDIR"/res/lactd.service "$PKGDIR"/usr/lib/systemd/system/lactd.service | ||
install -Dm644 "$SRCDIR"/res/io.github.lact-linux.desktop "$PKGDIR"/usr/share/applications/io.github.lact-linux.desktop | ||
install -Dvm644 "$SRCDIR"/res/lactd.service \ | ||
"$PKGDIR"/usr/lib/systemd/system/lactd.service | ||
install -Dvm644 "$SRCDIR"/res/io.github.lact-linux.desktop \ | ||
"$PKGDIR"/usr/share/applications/io.github.lact-linux.desktop | ||
|
||
abinfo "Installing assests ..." | ||
install -Dm644 "$SRCDIR"/res/io.github.lact-linux.png "$PKGDIR"/usr/share/pixmaps/io.github.lact-linux.png | ||
install -Dm644 "$SRCDIR"/res/io.github.lact-linux.svg "$PKGDIR"/usr/share/icons/hicolor/scalable/apps/io.github.lact-linux.svg | ||
install -Dvm644 "$SRCDIR"/res/io.github.lact-linux.png \ | ||
"$PKGDIR"/usr/share/pixmaps/io.github.lact-linux.png | ||
install -Dvm644 "$SRCDIR"/res/io.github.lact-linux.svg \ | ||
"$PKGDIR"/usr/share/icons/hicolor/scalable/apps/io.github.lact-linux.svg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
app-admin/lact/autobuild/overrides/usr/lib/systemd/system-preset/70-lact.preset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
enable lactd.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
case "$1" in | ||
configure) | ||
# Discern installation and upgrade/reinstall/residual-config. | ||
if [ -z "$2" ]; then | ||
systemctl preset lactd.service | ||
# Apparently `systemctl preset' implies daemon-reload. | ||
# This should be documented somewhere... | ||
if ! systemd-detect-virt -cq; then | ||
systemctl start lactd.service | ||
fi | ||
else | ||
if ! systemd-detect-virt -cq; then | ||
systemctl daemon-reload | ||
if systemctl is-enabled lactd.sevice > /dev/null; then | ||
systemctl try-restart lactd.service | ||
fi | ||
fi | ||
fi | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
VER=0.5.4 | ||
REL=1 | ||
SRCS="git::commit=tags/v$VER::https://github.com/ilya-zlobintsev/LACT" | ||
CHKSUMS="SKIP" | ||
CHKUPDATE="anitya::id=372202" |