I used ";&" separator in the case statement so that "configure" step continues to "triggered" step. This syntax does not work with /bin/sh:
Unpacking replacement schooltool ... Setting up schooltool (1:1.6.0~a1-0ubuntu2) ... /var/lib/dpkg/info/schooltool.postinst: 33: Syntax error: ";" unexpected dpkg: error processing schooltool (--install): subprocess installed post-installation script returned error exit status 2
That's why I used /bin/bash in this script.
I used ";&" separator in the case statement so that "configure" step continues to "triggered" step. This syntax does not work with /bin/sh:
Unpacking replacement schooltool ... 0~a1-0ubuntu2) ... dpkg/info/ schooltool. postinst: 33: Syntax error: ";" unexpected
Setting up schooltool (1:1.6.
/var/lib/
dpkg: error processing schooltool (--install):
subprocess installed post-installation script returned error exit status 2
That's why I used /bin/bash in this script.