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