projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
9706: Add postinst script to Go packages that have systemd unit files, so (on Debian...
[arvados.git]
/
build
/
go-package-scripts
/
postinst
1
#!/bin/bash
2
3
set -e
4
5
script="${0##*/}"
6
pkg="${script%.postinst}"
7
8
case "${1}" in
9
configure)
10
if which systemctl >/dev/null && [[ -e "/lib/systemd/system/${pkg}.service" ]]; then
11
systemctl enable "${pkg}"
12
systemctl start "${pkg}"
13
fi
14
;;
15
esac