From 7223a627af8137817a639dfa40a78651c61cb3b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebleu?= Date: Wed, 27 Apr 2016 21:12:09 +0200 Subject: [PATCH] [fix] Remove old PAM config file at package postinstall --- debian/postinst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/debian/postinst b/debian/postinst index c67d432ab..124657a10 100644 --- a/debian/postinst +++ b/debian/postinst @@ -17,11 +17,13 @@ do_configure() { # restart yunohost-firewall if it's running service yunohost-firewall status >/dev/null \ && restart_yunohost_firewall \ - || echo "Service yunohost-firewall is not running, you should " \ + || echo "yunohost-firewall service is not running, you should " \ "consider to start it by doing 'service yunohost-firewall start'." fi - # update PAM configs + # remove old PAM config and update it + [[ ! -f /usr/share/pam-configs/my_mkhomedir ]] \ + || rm /usr/share/pam-configs/my_mkhomedir pam-auth-update --package }