Skip to content

Commit

Permalink
Added postinstall script
Browse files Browse the repository at this point in the history
  • Loading branch information
CameronRP committed Mar 11, 2021
1 parent 9925b7b commit 770a775
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ nfpms:
bindir: /usr/bin
files:
"_release/audiobait.service": "/etc/systemd/system/audiobait.service"
scripts:
postinstall: "_release/postinstall.sh"
4 changes: 4 additions & 0 deletions _release/postinstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
systemctl daemon-reload
systemctl enable audiobait.service
systemctl restart audiobait.service

0 comments on commit 770a775

Please sign in to comment.