I tried to install wok-2.0.0-0.noarch.deb on Ubuntu 14.04.3 LTS but dpkg
fails because of the exit error 127 in the postinst script.
It seems that "type /bin/systemctl" exits with this error, because this
file is missing (Ubuntu 14.04 is not using systemd).
I changed the script like this:
#systemd_exists=$(type /bin/systemctl > /dev/null 2>&1; echo $?)
#if test $systemd_exists = "0"; then
if [ -e /bin/systemctl ]; then
/bin/systemctl enable wokd > /dev/null 2>&1
/bin/systemctl daemon-reload > /dev/null 2>&1
/bin/systemctl start wokd > /dev/null 2>&1
... and it worked for me.