Remove database on reinstall

This commit is contained in:
Bob Mottram 2015-06-19 19:58:33 +01:00
parent 23eb5fac45
commit 9089bd1f36
1 changed files with 7 additions and 1 deletions

View File

@ -5720,6 +5720,12 @@ function configure_imap_client_certs {
echo 'authorityKeyIdentifier = keyid:always' >> /etc/ssl/dovecot-ca.cnf
echo 'keyUsage = digitalSignature,keyEncipherment' >> /etc/ssl/dovecot-ca.cnf
echo 'extendedKeyUsage = clientAuth' >> /etc/ssl/dovecot-ca.cnf
if [ -f /etc/ssl/ssldb ]; then
rm /etc/ssl/ssldb
fi
if [ -f /etc/ssl/sslserial ]; then
rm /etc/ssl/sslserial
fi
touch /etc/ssl/ssldb
echo 0001 > /etc/ssl/sslserial
#freedombone-clientcert -u $MY_USERNAME