__devenv
This commit is contained in:
parent
76819f7b95
commit
e898cb385c
1
.gitignore
vendored
1
.gitignore
vendored
@ -7,5 +7,6 @@ systems/*
|
|||||||
|
|
||||||
var/
|
var/
|
||||||
|
|
||||||
|
.firstRun
|
||||||
.aliases
|
.aliases
|
||||||
.systems
|
.systems
|
||||||
@ -1,4 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
RESET='\033[0m'
|
||||||
Black='\033[0;30m'
|
Black='\033[0;30m'
|
||||||
Red='\033[0;31m'
|
Red='\033[0;31m'
|
||||||
Green='\033[0;32m'
|
Green='\033[0;32m'
|
||||||
@ -9,17 +10,17 @@ Cyan='\033[0;36m'
|
|||||||
White='\033[0;37m'
|
White='\033[0;37m'
|
||||||
|
|
||||||
denv_error_msg () {
|
denv_error_msg () {
|
||||||
echo -e "${Red}$@${White}"
|
echo -e "${Red}$@${RESET}"
|
||||||
}
|
}
|
||||||
|
|
||||||
denv_success_msg () {
|
denv_success_msg () {
|
||||||
echo -e "${Green}$@${White}"
|
echo -e "${Green}$@${RESET}"
|
||||||
}
|
}
|
||||||
|
|
||||||
denv_info_msg () {
|
denv_info_msg () {
|
||||||
echo -e "${Cyan}$@${White}"
|
echo -e "${Cyan}$@${RESET}"
|
||||||
}
|
}
|
||||||
|
|
||||||
denv_echo_msg () {
|
denv_echo_msg () {
|
||||||
echo -e "${White}$@"
|
echo -e "${White}$@${RESET}"
|
||||||
}
|
}
|
||||||
@ -21,7 +21,7 @@ while IFS=' ' read -r IDENTIFIER DIRECTORY GIT; do
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
denv_info_msg "System $IDENTIFIER"
|
denv_info_msg "System $IDENTIFIER"
|
||||||
SYSTEM_SCRIPT_DIRECTORY=$(realpath "systems/$DIRECTORY/bin/script")
|
SYSTEM_SCRIPT_DIRECTORY=$(realpath "$ENV_DIR/systems/$DIRECTORY/bin/script")
|
||||||
COMMAND_PATH="$SYSTEM_SCRIPT_DIRECTORY/$COMMAND";
|
COMMAND_PATH="$SYSTEM_SCRIPT_DIRECTORY/$COMMAND";
|
||||||
|
|
||||||
# Check if system directory already exists
|
# Check if system directory already exists
|
||||||
|
|||||||
4
up
4
up
@ -9,7 +9,7 @@ echo ""
|
|||||||
|
|
||||||
$ENV_DIR/script/foreachSystem/dcom up -d
|
$ENV_DIR/script/foreachSystem/dcom up -d
|
||||||
|
|
||||||
if [[ ! -f "$ENV_DIR/var/.firstRun" ]] ; then
|
if [[ ! -f "$ENV_DIR/.firstRun" ]] ; then
|
||||||
$ENV_DIR/script/foreachSystem/runScript firstRun
|
$ENV_DIR/script/foreachSystem/runScript firstRun
|
||||||
touch "$ENV_DIR/var/.firstRun"
|
touch "$ENV_DIR/.firstRun"
|
||||||
fi
|
fi
|
||||||
Loading…
Reference in New Issue
Block a user