Skip to content

Commit

Permalink
Add preremove script
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug committed Jul 24, 2024
1 parent 7102978 commit cdfb256
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ nfpms:
- yukictl
scripts:
postinstall: etc/postinst.sh
preremove: etc/prerm.sh
contents:
- src: dist/bash_completion
dst: /etc/bash_completion.d/yukictl
Expand Down
6 changes: 6 additions & 0 deletions etc/prerm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

# Only run if systemd is running
[ -d /run/systemd ] || exit 0

systemctl disable --now yukid.service

0 comments on commit cdfb256

Please sign in to comment.