This commit is contained in:
overcuriousity 2025-08-07 15:47:56 +02:00
parent ad7dd5bc70
commit def89822f6

View File

@ -1,9 +1,12 @@
#!/bin/bash #!/bin/bash
# ForensicPathways Deployment Script *ownership-aware* # ForensicPathways Deployment Script *ownership-aware* + VISUAL ENHANCED
# Usage: sudo ./deploy.sh # Usage: sudo ./deploy.sh
set -e set -e
# ═══════════════════════════════════════════════════════════════════════════════
# 🎨 VISUAL ENHANCEMENT SYSTEM
# ═══════════════════════════════════════════════════════════════════════════════
# Color palette # Color palette
declare -r RED='\033[0;31m' declare -r RED='\033[0;31m'
@ -274,14 +277,14 @@ fancy_header() {
for ((i=0; i<box_width; i++)); do for ((i=0; i<box_width; i++)); do
local color_idx=$((i * 10 / box_width)) local color_idx=$((i * 10 / box_width))
case $color_idx in case $color_idx in
0|1) printf "${GRAD1}${BOX_H}${RESET}" ;; 0|1) printf "${GRAD1}${BOX_H}" ;;
2|3) printf "${GRAD3}${BOX_H}${RESET}" ;; 2|3) printf "${GRAD3}${BOX_H}" ;;
4|5) printf "${GRAD5}${BOX_H}${RESET}" ;; 4|5) printf "${GRAD5}${BOX_H}" ;;
6|7) printf "${GRAD7}${BOX_H}${RESET}" ;; 6|7) printf "${GRAD7}${BOX_H}" ;;
*) printf "${GRAD9}${BOX_H}${RESET}" ;; *) printf "${GRAD9}${BOX_H}" ;;
esac esac
done done
echo printf "${RESET}\n"
# Title line # Title line
printf "${GRAD1}${BOX_V}${RESET}" printf "${GRAD1}${BOX_V}${RESET}"
@ -294,7 +297,7 @@ fancy_header() {
if [ -n "$subtitle" ]; then if [ -n "$subtitle" ]; then
printf "${GRAD3}${BOX_V}${RESET}" printf "${GRAD3}${BOX_V}${RESET}"
for ((i=0; i<subtitle_padding; i++)); do printf " "; done for ((i=0; i<subtitle_padding; i++)); do printf " "; done
printf "${ITALIC}${DIM}$subtitle${RESET}" printf "${ITALIC}${DIM}${subtitle}${RESET}"
for ((i=0; i<box_width-subtitle_len-subtitle_padding-2; i++)); do printf " "; done for ((i=0; i<box_width-subtitle_len-subtitle_padding-2; i++)); do printf " "; done
printf "${GRAD3}${BOX_V}${RESET}\n" printf "${GRAD3}${BOX_V}${RESET}\n"
fi fi
@ -304,14 +307,14 @@ fancy_header() {
for ((i=0; i<box_width; i++)); do for ((i=0; i<box_width; i++)); do
local color_idx=$((i * 10 / box_width)) local color_idx=$((i * 10 / box_width))
case $color_idx in case $color_idx in
0|1) printf "${GRAD1}${BOX_H}${RESET}" ;; 0|1) printf "${GRAD1}${BOX_H}" ;;
2|3) printf "${GRAD3}${BOX_H}${RESET}" ;; 2|3) printf "${GRAD3}${BOX_H}" ;;
4|5) printf "${GRAD5}${BOX_H}${RESET}" ;; 4|5) printf "${GRAD5}${BOX_H}" ;;
6|7) printf "${GRAD7}${BOX_H}${RESET}" ;; 6|7) printf "${GRAD7}${BOX_H}" ;;
*) printf "${GRAD9}${BOX_H}${RESET}" ;; *) printf "${GRAD9}${BOX_H}" ;;
esac esac
done done
echo printf "${RESET}\n"
echo echo
} }
@ -400,7 +403,7 @@ ORIGINAL_HOME=$(eval echo "~$ORIGINAL_USER")
tput civis # Hide cursor tput civis # Hide cursor
# ASCII Art Banner # ASCII Art Banner
fancy_header "FORENSIC PATHWAYS DEPLOYMENT" "Advanced Visual Enhancement System" fancy_header "FORENSIC PATHWAYS DEPLOYMENT"
# Matrix effect intro # Matrix effect intro
printf "${DIM}${GREEN}Initializing deployment matrix...${RESET}\n" printf "${DIM}${GREEN}Initializing deployment matrix...${RESET}\n"