-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsystem.cnf
35 lines (31 loc) · 900 Bytes
/
system.cnf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# LINUX - CONFIGS
LINUX_MACHINE_TYPE=$(uname -m)
LINUX_DISTRO=$(python -mplatform)
# SYSTEM - CONFIGS
SCRIPT=$BASH_SOURCE
SCRIPTPATH=$(dirname $(realpath $SCRIPT))
LIB_PATH=$SCRIPTPATH/lib
TMP_PATH=$SCRIPTPATH/tmp
FILES_PATH=$SCRIPTPATH/files
CONFIGS_PATH=$SCRIPTPATH/configs
CONFIGS_PATH_DEFAULT=$CONFIGS_PATH/default
CONFIGS_PATH_CUSTOM=$CONFIGS_PATH/custom
TIME_FORMAT="%Y-%m-%d_%H:%M:%S"
TIME_FORMAT_FILE="%Y-%m-%d-%H%M%S"
# SYSTEM - LOGS
LOG_PATH=$SCRIPTPATH/logs
LOG_ERROR=$LOG_PATH/error.log
LOG_DEPLOYMENT=$LOG_PATH/deployments/deployment_$(date +"$TIME_FORMAT_FILE").log
# SYSTEM - COLOR CODES
RED=$(tput setaf 1)
GREEN=$(tput setaf 2)
YELLOW=$(tput setaf 3)
UNDERLINE=$(tput smul)
COLOR_RESET=$(tput sgr0)
# SYSTEM - MESSAGES
MSG_TYPES="ERROR, WARNING, INFO, DONE, TEXT"
MSG_ERROR="[ERROR]:"
MSG_WARNING="[WARNING]:"
MSG_INFO="[INFO]:"
MSG_DONE="[FINISHED]:"
MSG_RESET="${COLOR_RESET}"