From 70299e4fea03568965e14026e3bf810e9ed2ef08 Mon Sep 17 00:00:00 2001 From: Bruno Cesar Ribas Date: Thu, 23 Aug 2018 11:32:31 -0300 Subject: d/boca-web.posinst: Resets stored password in debconf This is a security measure to avoid DB password in multiple files Signed-off-by: Bruno Cesar Ribas --- debian/boca-web.postinst | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'debian') diff --git a/debian/boca-web.postinst b/debian/boca-web.postinst index 49061af..52071f4 100644 --- a/debian/boca-web.postinst +++ b/debian/boca-web.postinst @@ -1,5 +1,7 @@ #!/bin/bash +. /usr/share/debconf/confmodule + chown -R www-data.www-data /var/www/boca chmod -R go-rwx /var/www/boca/src/private @@ -15,3 +17,8 @@ a2dismod php7.2 || true a2enconf php7.2-fpm service apache2 restart || true + +#remember to reset possible stored password from debconf +db_reset boca-common/dbpassword || true + +exit 0 -- cgit v1.2.3