mirror of
https://github.com/cytopia/devilbox.git
synced 2024-12-24 06:56:40 +00:00
check-config.sh abort if .env file is not present
This commit is contained in:
parent
8a290af71c
commit
bbf297a356
@ -106,12 +106,14 @@ if [ -f .env ]; then
|
||||
else
|
||||
log_err ".env file does not exist"
|
||||
RET_CODE=$(( RET_CODE + 1))
|
||||
exit 1
|
||||
fi
|
||||
if [ -r .env ]; then
|
||||
log_ok ".env file is readable"
|
||||
else
|
||||
log_err ".env file is not readable"
|
||||
RET_CODE=$(( RET_CODE + 1))
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Ensure all variables exist in .env file
|
||||
|
Loading…
Reference in New Issue
Block a user