9706: Go service postinst improvements.
authorBrett Smith <brett@curoverse.com>
Wed, 10 Aug 2016 17:22:02 +0000 (13:22 -0400)
committerTom Clegg <tom@curoverse.com>
Tue, 23 Aug 2016 17:28:18 +0000 (13:28 -0400)
commit3ffd38b8e0792fc68be55d954cd65ab32f64586a
tree126051f956eb94545eaeda0b76555b4c0e44840d
parent369b6de63a042bd7b0a95a5510f0260a314c2361
9706: Go service postinst improvements.

* Use /bin/sh, per Debian policy.
* Prefer basename for readability.
* Check for systemd init with [ -e /run/systemd/system ].
* Make configuration changes based on checking the unit file state.
build/go-package-scripts/postinst