mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
* new first line of script * no requested * Abort! * Test silent folder validation * sameline * echo newline * echo_sameline * what happened? * sameline for ssh * sqlite sameline * Lower case * Reset line * clear line * Flip the line * version update * Backup lowercase * More lowercase * Remove file names from standard messages * Breakout backup message * Output backup folder size * Just H * Invalid replication settings * Compare updated * Colors and updates * Lower case for version output * For Pihole * Cron cleanup * Sudo, or no sudo. * Branch! * Silent error validate * Silent error validate * Clearing up status messages * Records * Primary and secondary * Gravity database * Domain Database * Backup output cleanup * Move file permission validation into new functions * Change restart * UI variables test * Breakout UI variables into new file * Unified validation functions * Replace text strings with variables * Replace text strings with variables * Replace logging with variables * Convert backup to UI variables * Switch restore to UI variables * Fix bug where gravity database did not restore * App validation checks * Rev to 3.4.0 * Convert Push functions to new strings * Completing push UI changes * remove added line * Move purge to UI strings * Move automation to UI strings * Move core strings into UI * Exit strings * First pass at hashing UI * Escape the remote system query (#179) * hashing committed Co-authored-by: Michael Stanclift <vmstan@mstanclift-a03.local> Co-authored-by: Veduco <59983694+Veduco@users.noreply.github.com>
79 lines
1.5 KiB
Bash
79 lines
1.5 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}e${NC}]"
|
|
INFO="[${YELLOW}i${NC}]"
|
|
NEED="[${BLUE}?${NC}]"
|
|
LOGO="[${PURPLE}∞${NC}]"
|
|
|
|
## Echo Stack
|
|
### Informative
|
|
function echo_info {
|
|
echo -e "${INFO} ${YELLOW}${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_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 ""
|
|
}
|
|
|
|
|