diff options
| author | Bruno Cesar Ribas <brunoribas@gmail.com> | 2018-08-23 14:32:31 +0000 |
|---|---|---|
| committer | Bruno Cesar Ribas <brunoribas@gmail.com> | 2018-08-23 14:32:31 +0000 |
| commit | 70299e4fea03568965e14026e3bf810e9ed2ef08 (patch) | |
| tree | b62a7bda6dd7f193afb95ad14c55aa8339b16262 | |
| parent | 9afc0704ec837e6b3ef584ce0e66528b8a2cfa10 (diff) | |
| download | boca-70299e4fea03568965e14026e3bf810e9ed2ef08.tar.gz boca-70299e4fea03568965e14026e3bf810e9ed2ef08.zip | |
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 <brunoribas@gmail.com>
| -rw-r--r-- | debian/boca-web.postinst | 7 |
1 files changed, 7 insertions, 0 deletions
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 |