projects
/
arvados.git
/ blob
137f8988d39b052c5a4c6e631284964dbe53906c
[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