From 61d34557b5715c7da553fe207f2abbe4166fd49b Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 4 Jun 2020 11:45:51 +0200 Subject: [PATCH] Debian packaging: purge Smarty templates cache on upgrade --- debian/ldapsaisie.postinst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/ldapsaisie.postinst b/debian/ldapsaisie.postinst index e8ebd95b..6ea17ba9 100644 --- a/debian/ldapsaisie.postinst +++ b/debian/ldapsaisie.postinst @@ -13,5 +13,8 @@ case "$1" in then mv /usr/local/share/ldapsaisie/conf/config.inc.php.dpkg-move /usr/local/share/ldapsaisie/conf/config.inc.php fi + + # Purge Smarty templates cache + rm -f /var/cache/ldapsaisie/*.php ;; esac