Allow Config files to be symbolic links

The `-f` operator checks if a files exists and i must not be a symlink, however this creates problems when using tool like Kubernetes.
When using the `-e` option it will be checked if the file exist regardless of it's type.
This commit is contained in:
Luk Burchard 2017-07-06 16:41:05 +02:00 committed by GitHub
parent f808804722
commit e48fc61061
1 changed files with 6 additions and 6 deletions

View File

@ -173,29 +173,29 @@ email_cron_job() {
} }
if [ ! -f $gpg_private_key ] || [ ! -f $gpg_public_key ]; then if [ ! -e $gpg_private_key ] || [ ! -e $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 [ ! -e $core_config ]; then
core_setup core_setup
fi fi
if [ ! -f $db_config ]; then if [ ! -e $db_config ]; then
db_setup db_setup
fi fi
if [ ! -f $app_config ]; then if [ ! -e $app_config ]; then
app_setup app_setup
fi fi
if [ ! -f $email_config ]; then if [ ! -e $email_config ]; then
email_setup email_setup
fi fi
if [ ! -f $ssl_key ] && [ ! -f $ssl_cert ]; then if [ ! -e $ssl_key ] && [ ! -e $ssl_cert ]; then
gen_ssl_cert gen_ssl_cert
fi fi