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:
parent
f7c7d5b9c3
commit
a68fd6429f
@ -10,6 +10,8 @@ mkdir -p $STORAGE_ROOT/backup
|
|||||||
if [ ! -f $STORAGE_ROOT/backup/secret_key.txt ]; then
|
if [ ! -f $STORAGE_ROOT/backup/secret_key.txt ]; then
|
||||||
openssl rand -base64 2048 > $STORAGE_ROOT/backup/secret_key.txt
|
openssl rand -base64 2048 > $STORAGE_ROOT/backup/secret_key.txt
|
||||||
fi
|
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.
|
# Link the management server daemon into a well known location.
|
||||||
rm -f /usr/local/bin/mailinabox-daemon
|
rm -f /usr/local/bin/mailinabox-daemon
|
||||||
|
Loading…
Reference in New Issue
Block a user