8519b7fc0e
This PR adds into the admin panel a front-end to manage PGP keys. Possibilities are many.
12 lines
No EOL
264 B
Bash
Executable file
12 lines
No EOL
264 B
Bash
Executable file
#!/bin/bash
|
|
# Renews the daemon's PGP key, if needed.
|
|
|
|
source /etc/mailinabox.conf # load global vars
|
|
export GNUPGHOME # Dump into the environment so that gpg uses it as homedir
|
|
|
|
gpg --batch --command-fd=0 --edit-key "${PGPKEY-}" << EOF;
|
|
key 0
|
|
expire
|
|
180d
|
|
save
|
|
EOF |