mirror of
https://github.com/DanWin/mail-hosting.git
synced 2025-08-25 00:23:26 +02:00
Add mysql encryption and squirrelmail to install script
This commit is contained in:
parent
0117323247
commit
f61c1e150e
1 changed files with 18 additions and 2 deletions
|
@ -37,3 +37,19 @@ composer self-update
|
|||
id -u _rspamd >/dev/null 2>&1 ||useradd -M -r -s /bin/false -d /var/lib/rspamd _rspamd
|
||||
mkdir -p /var/lib/rspamd
|
||||
chown _rspamd: /var/lib/rspamd
|
||||
|
||||
# mysql encryption
|
||||
if [ ! -e /etc/mysql/encryption/keyfile.enc ]; then
|
||||
mkdir -p /etc/mysql/encryption/
|
||||
openssl rand -hex 128 > /etc/mysql/encryption/keyfile.key
|
||||
echo "1;"$(openssl rand -hex 32) | openssl enc -aes-256-cbc -md sha1 -pass file:/etc/mysql/encryption/keyfile.key -out /etc/mysql/encryption/keyfile.enc
|
||||
fi
|
||||
|
||||
# install squirrelmail
|
||||
if [ ! -e /var/www/html/mail/squirrelmail ]; then
|
||||
mkdir -p /var/www/html/mail/squirrelmail
|
||||
cd /var/www/html/mail/squirrelmail
|
||||
git clone https://github.com/RealityRipple/squirrelmail .
|
||||
mkdir -p /var/local/squirrelmail/data /var/local/squirrelmail/attach
|
||||
chown www-data:www-data -R /var/local/squirrelmail
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue