Last active
December 19, 2018 16:41
-
-
Save fkaminski/7da17640d013662f4e530f30ce505239 to your computer and use it in GitHub Desktop.
Contao-Docker-Tutorial - vars.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### Get actual Data form .env file | |
### See https://gist.github.com/judy2k/7656bfe3b322d669ef75364a46327836 | |
PROJECT_NAME=$(grep COMPOSE_PROJECT_NAME .env | cut -d '=' -f2) | |
GLOBAL_PASS_NAME=$(grep GLOBAL_PASS_NAME .env | cut -d '=' -f2) | |
BACKUP_DIR=$(grep BACKUP_DIR .env | cut -d '=' -f2) | |
CONTAINER_CONTAO=${PROJECT_NAME}_contao | |
CONTAINER_DB=${PROJECT_NAME}_db | |
CONTAINER_USER=www-data | |
CONTAINER_WORKDIR=/var/www/share/project/ | |
### Color Format | |
COL_START='\e[97;42m'"\n"'\e[K' | |
COL_STEP='\e[97;42m\e[K\e[m' | |
COL_END='\e[97;42m\e[K\e[m\n' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment