mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
* start 3.6 * Remove backup retention reference * dbclient_warning removed * remove extra linebreaks * remove backup task * Increased backup and integrity timeouts to 240 * Remove brackets from message codes * Arrow for info * Different arrow * Ain't gonna restore no more * Abortion aborted * format change for config test * All kinds of yes and no * echo_grav * Move advanced to the end * removed custom ssh, ping check and port options from wizard * primary address changes * rework user input * good clean fun * smaller version text * less info * Set push commands to default 240 second timeout * Remove reference to backup and restore tasks from log output * Remove backup refs * Move UI elements over to gs-ui * Move ICMP to UI * More UI * More UI * UI changes * Add end config * Spaces and such * MOre UI * UI * UI UI UI * UI UI * echo_blue * echo_blue too * switch * fip flop * Too blue * Fix path being run * = * Remove () * continued cleaning * Almost done rewriting config * switch CNAME defaults * Add CNAME function
89 lines
1.6 KiB
Bash
89 lines
1.6 KiB
Bash
# GRAVITY SYNC BY VMSTAN #####################
|
||
# gs-colors.sh ###############################
|
||
|
||
# For documentation or downloading updates visit https://github.com/vmstan/gravity-sync
|
||
# This code is called from the main gravity-sync.sh file and should not execute directly!
|
||
|
||
## Script Colors
|
||
RED='\033[0;91m'
|
||
GREEN='\033[0;92m'
|
||
CYAN='\033[0;96m'
|
||
YELLOW='\033[0;93m'
|
||
PURPLE='\033[0;95m'
|
||
BLUE='\033[0;94m'
|
||
BOLD='\033[1m'
|
||
NC='\033[0m'
|
||
|
||
## Message Codes
|
||
FAIL="${RED}✗${NC}"
|
||
WARN="${PURPLE}!${NC}"
|
||
GOOD="${GREEN}✓${NC}"
|
||
STAT="${CYAN}∞${NC}"
|
||
INFO="${YELLOW}»${NC}"
|
||
INF1="${CYAN}›${NC}"
|
||
NEED="${BLUE}?${NC}"
|
||
LOGO="${PURPLE}∞${NC}"
|
||
|
||
## Echo Stack
|
||
### Informative
|
||
function echo_info {
|
||
echo -e "${INFO} ${YELLOW}${MESSAGE}${NC}"
|
||
}
|
||
|
||
function echo_inf1 {
|
||
echo -e "${INF1} ${CYAN}${MESSAGE}${NC}"
|
||
}
|
||
|
||
### Warning
|
||
function echo_warn {
|
||
echo -e "${WARN} ${PURPLE}${MESSAGE}${NC}"
|
||
}
|
||
|
||
### Executing
|
||
function echo_stat {
|
||
echo -en "${STAT} ${MESSAGE}"
|
||
}
|
||
|
||
### Success
|
||
function echo_good {
|
||
echo -e "\r${GOOD} ${MESSAGE}"
|
||
}
|
||
|
||
### Success
|
||
function echo_good_clean {
|
||
echo -e "\r${GOOD} ${MESSAGE}"
|
||
}
|
||
|
||
### Success
|
||
function echo_sameline {
|
||
echo -en " "
|
||
echo -en "\r"
|
||
}
|
||
|
||
### Failure
|
||
function echo_fail {
|
||
echo -e "\r${FAIL} ${MESSAGE}"
|
||
}
|
||
|
||
### Request
|
||
function echo_need {
|
||
echo -en "${NEED} ${BOLD}${MESSAGE}:${NC} "
|
||
}
|
||
|
||
### Gravity Sync Logo
|
||
function echo_grav {
|
||
echo -e "${LOGO} ${BOLD}${MESSAGE}${NC}"
|
||
}
|
||
|
||
### Lines
|
||
function echo_lines {
|
||
echo -e "========================================================"
|
||
}
|
||
|
||
### Lines
|
||
function echo_blank {
|
||
echo -e ""
|
||
}
|
||
|
||
|