Skip to content

Commit

Permalink
Merge branch 'realfake-patch-1'
Browse files Browse the repository at this point in the history
Merged PR #2
  • Loading branch information
dlen committed Jul 26, 2017
2 parents 85b71ff + 2a25d2d commit 3d07473
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions bin/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
else
gpg_import_key
fi

if [ ! -f $core_config ]; then
if [ ! -f $core_config ] && [ ! -L $core_config ]; then
core_setup
fi

if [ ! -f $db_config ]; then
if [ ! -f $db_config ] && [ ! -L $db_config ]; then
db_setup
fi

if [ ! -f $app_config ]; then
if [ ! -f $app_config ] && [ ! -L $app_config ]; then
app_setup
fi

if [ ! -f $email_config ]; then
if [ ! -f $email_config ] && [ ! -L $email_config ]; then
email_setup
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
fi

Expand Down

0 comments on commit 3d07473

Please sign in to comment.