mirror of
https://github.com/fergalmoran/docker-nginx.git
synced 2025-12-24 02:37:41 +00:00
Initial commit
This commit is contained in:
18
scripts/base.sh
Normal file
18
scripts/base.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Basic scripts
|
||||
#
|
||||
|
||||
# 1. Check if .env file exists
|
||||
check_env_file() {
|
||||
if [ -e .env ]; then
|
||||
source .env
|
||||
else
|
||||
echo
|
||||
echo "Please set up your .env file before starting your enviornment."
|
||||
echo
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user