1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-11-26 02:57:04 +00:00

The secret key that encrypts the backups should not be world readable.

This commit is contained in:
Helmuth Gronewold 2014-08-22 22:55:34 +02:00
parent f7c7d5b9c3
commit a68fd6429f

View File

@ -10,6 +10,8 @@ mkdir -p $STORAGE_ROOT/backup
if [ ! -f $STORAGE_ROOT/backup/secret_key.txt ]; then
openssl rand -base64 2048 > $STORAGE_ROOT/backup/secret_key.txt
fi
# The secret key to encrypt backups should not be world readable.
chmod 0600 $STORAGE_ROOT/backup/secret_key.txt
# Link the management server daemon into a well known location.
rm -f /usr/local/bin/mailinabox-daemon