mirror of
https://github.com/guezoloic/serverconfig.git
synced 2026-03-28 18:03:49 +00:00
fix: source .env inside utils.sh
This commit is contained in:
@@ -4,7 +4,6 @@ PROJECT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|||||||
readonly PROJECT_DIR 2>/dev/null
|
readonly PROJECT_DIR 2>/dev/null
|
||||||
|
|
||||||
source $PROJECT_DIR/utils.sh
|
source $PROJECT_DIR/utils.sh
|
||||||
source $ENV_FILE
|
|
||||||
|
|
||||||
if [[ "--install" == $1 ]]; then
|
if [[ "--install" == $1 ]]; then
|
||||||
log_info "docker-compose Installation"
|
log_info "docker-compose Installation"
|
||||||
|
|||||||
1
utils.sh
1
utils.sh
@@ -12,6 +12,7 @@ fi
|
|||||||
readonly PROJECT_NAME="serverconfig" 2>/dev/null
|
readonly PROJECT_NAME="serverconfig" 2>/dev/null
|
||||||
|
|
||||||
readonly ENV_FILE="${PROJECT_DIR}/.env"
|
readonly ENV_FILE="${PROJECT_DIR}/.env"
|
||||||
|
source $ENV_FILE
|
||||||
|
|
||||||
readonly GREEN='\033[0;32m'
|
readonly GREEN='\033[0;32m'
|
||||||
readonly RED='\033[0;31m'
|
readonly RED='\033[0;31m'
|
||||||
|
|||||||
Reference in New Issue
Block a user