Skip to content

Instantly share code, notes, and snippets.

@fkaminski fkaminski/vars.sh
Last active Dec 19, 2018

Embed
What would you like to do?
Contao-Docker-Tutorial - vars.sh
#!/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
You can’t perform that action at this time.