Add shell.sh
This commit is contained in:
parent
e63c393216
commit
85a717274c
4 changed files with 56 additions and 22 deletions
|
|
@ -30,32 +30,29 @@ shopt -s expand_aliases
|
|||
|
||||
# Setup some basic input/output functions
|
||||
function log_info() {
|
||||
if [ -n "$DISABLE_LOG" ]; then
|
||||
return;
|
||||
fi
|
||||
echo -e "\033[1m$1\033[0m"
|
||||
}
|
||||
|
||||
function log_ok() {
|
||||
if [ -n "$DISABLE_LOG" ]; then
|
||||
return;
|
||||
fi
|
||||
echo -e "\033[0;32m$1\033[0m"
|
||||
}
|
||||
|
||||
function log_warn() {
|
||||
if [ -n "$DISABLE_LOG" ]; then
|
||||
return;
|
||||
fi
|
||||
echo -e "\033[1;33m$1\033[0m"
|
||||
}
|
||||
|
||||
function log_error() {
|
||||
if [ -n "$DISABLE_LOG" ]; then
|
||||
return;
|
||||
fi
|
||||
echo -e "\033[0;31m$1\033[0m"
|
||||
}
|
||||
|
||||
if [ -n "$DISABLE_LOG" ]; then
|
||||
function log_info() {
|
||||
true
|
||||
}
|
||||
function log_ok() {
|
||||
true
|
||||
}
|
||||
function log_warn() {
|
||||
true
|
||||
}
|
||||
function log_error() {
|
||||
true
|
||||
}
|
||||
fi
|
||||
|
|
@ -20,12 +20,14 @@ function require_slug_argument() {
|
|||
fi
|
||||
|
||||
log_info " => Deriving configuration for '$SLUG'. "
|
||||
echo "Domain Name: $INSTANCE_DOMAIN"
|
||||
echo "Base Directory: $INSTANCE_BASE_DIR"
|
||||
echo "MySQL User: $MYSQL_USER"
|
||||
echo "MySQL Database: $MYSQL_DATABASE"
|
||||
echo "GraphDB User: $GRAPHDB_USER"
|
||||
echo "GraphDB Repository: $GRAPHDB_REPO"
|
||||
if [ ! -n "DISABLE_LOG" ]; then
|
||||
echo "Domain Name: $INSTANCE_DOMAIN"
|
||||
echo "Base Directory: $INSTANCE_BASE_DIR"
|
||||
echo "MySQL User: $MYSQL_USER"
|
||||
echo "MySQL Database: $MYSQL_DATABASE"
|
||||
echo "GraphDB User: $GRAPHDB_USER"
|
||||
echo "GraphDB Repository: $GRAPHDB_REPO"
|
||||
fi
|
||||
}
|
||||
|
||||
# Read the slug argument.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue