summarylogtreecommitdiffstats
path: root/booster-um.install
blob: ff467822b802b320575077f2f2a2d55dc23ec9dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Colors
R='\033[1;31m' # Red
G='\033[1;32m' # Green
B='\033[1;34m' # Blue
Y='\033[1;33m' # Yellow
NC='\033[0m'   # No color

_print_divider() {
  (( ${divider:-0} )) ||
    echo "$(printf '%.0s-' {1..50})"
}

post_upgrade() {
  local old_version="${2:0:5}"

  if [ "$old_version" = "1.6.1" ]; then
    _print_divider
    echo -e "${R}==>${NC} ${R}Attention!${NC} The booster-um ${R}configuration has been changed!${NC}"
    echo -e "${Y}==>${NC} Please check the new configuration here: ${B}https://github.com/Zile995/booster-um/blob/main/config/CONFIG.md${NC}"
    echo -e "${Y}==>${NC} After changing the configuration, run the ${G}booster-um -G${NC} command again!"
    _print_divider
  fi
}