Merge branch 'realfake-patch-1'

Merged PR #2
This commit is contained in:
Diego Lendoiro 2017-07-26 11:55:13 +01:00
commit 3d07473abd
1 changed files with 8 additions and 6 deletions

View File

@ -173,29 +173,31 @@ email_cron_job() {
} }
if [ ! -f $gpg_private_key ] || [ ! -f $gpg_public_key ]; then if [ ! -f $gpg_private_key ] && [ ! -L $gpg_private_key ] || \
[ ! -f $gpg_public_key ] && [ ! -L $gpg_public_key ]; then
gpg_gen_key gpg_gen_key
else else
gpg_import_key gpg_import_key
fi fi
if [ ! -f $core_config ]; then if [ ! -f $core_config ] && [ ! -L $core_config ]; then
core_setup core_setup
fi fi
if [ ! -f $db_config ]; then if [ ! -f $db_config ] && [ ! -L $db_config ]; then
db_setup db_setup
fi fi
if [ ! -f $app_config ]; then if [ ! -f $app_config ] && [ ! -L $app_config ]; then
app_setup app_setup
fi fi
if [ ! -f $email_config ]; then if [ ! -f $email_config ] && [ ! -L $email_config ]; then
email_setup email_setup
fi fi
if [ ! -f $ssl_key ] && [ ! -f $ssl_cert ]; then if [ ! -f $ssl_key ] && [ ! -L $ssl_key ] && \
[ ! -f $ssl_cert ] && [ ! -L $ssl_cert ]; then
gen_ssl_cert gen_ssl_cert
fi fi