Update postinst

Fix errors:
- Capital letters for variables
- Variable side enclosed in quotes in bash comparison
Thanks plajjan