Commit f37d846b authored by Georges Khaznadar's avatar Georges Khaznadar

fixed bugs in install, postinst, postrm, etc. files

parent 9ee24a76
......@@ -21,7 +21,9 @@ set -e
case "$1" in
configure)
# make cgi scripts executable and compile them
chmod +x /usr/share/expeyes-web/cgi-bin/*.cgi
python3 py_compile /usr/share/expeyes-web/cgi-bin/*.cgi
# reconfigure the webserver if necessary
db_get expeyes-web/reconfigure-webserver || true
webserver="$RET"
......
#!/bin/sh
# postrm script for expeyes-web
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `abort-install'
# * <new-postrm> `abort-install' <old-version>
# * <new-postrm> `abort-upgrade' <old-version>
# * <disappearer's-postrm> `disappear' <overwriter>
# <overwriter-version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
rm -rf /usr/share/expeyes-web/cgi-bin/__pycache__
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
;;
esac
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment