mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
97735f19f1
* Catch up 3.3 (#142) * 3.2.5 (#140) Co-authored-by: Michael Stanclift <vmstan@mstanclift-a03.vmware.com> * Adds backup cleanup back to process * Add backup cleanup to compare script when no changes are detected. * Trek reference * Redundant * 3.2.6 * 3.2.6 Co-authored-by: Michael Stanclift <vmstan@mstanclift-a03.vmware.com> Co-authored-by: Michael Stanclift <vmstan@mstanclift-a03.local> * Beginning 3.3.0 work * Podman support * Support for pihole running in a podman container (#138) * add support for pihole running in a podman container * revert renaming of DOCKER_CON to CON_NAME to avoid breaking existing installations Co-authored-by: Michael Stanclift <mstanclift@vmware.com> * Add sudo to call of Pihole container version * Use dev branch pipe * Without origin * ascii * rotate logo * Move config files to settings folder * MIssed an important one * Relocate logs files * Filling empty directory * Regression of sudo fix * Logs * More words * Change sync frequency options * Remove backup automation * Bold questions * name * elif * BACKUP_RETAIN=3 * Remove automation flag * == not != * Rearrange * IF * Default to 0 * 15 default * More words! * ELSE * tighter columns * Instance type * Y/N Co-authored-by: Michael Stanclift <vmstan@mstanclift-a03.vmware.com> Co-authored-by: Michael Stanclift <vmstan@mstanclift-a03.local> Co-authored-by: Martin F. Schumann <mfs@mfs.name>
73 lines
1.3 KiB
Bash
73 lines
1.3 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}"
|
|
}
|
|
|
|
### 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 ""
|
|
}
|
|
|
|
|