#!/bin/bash set -e GREEN='\033[0;32m' AQUA='\033[0;36m' RED='\033[0;31m' NC='\033[0m' echo -e "${AQUA}Welcome to VS-Shop PufferPanel Installer 2.0! You are about to install PufferPanel on a fresh OS system." echo -e "Let's get started with the installation process...${NC}" read -p "Press [Enter] to continue or [Ctrl+C] to exit." echo -e "${AQUA}Please enter your domain name for SSL configuration (e.g., panel.example.com):${NC}" read DOMAIN echo -e "${AQUA}Updating system packages...${NC}" sudo apt-get update && sudo apt-get upgrade -y echo -e "${AQUA}Installing curl...${NC}" sudo apt-get install -y curl echo -e "${AQUA}Adding PufferPanel repository...${NC}" curl -s https://packagecloud.io/install/repositories/pufferpanel/pufferpanel/script.deb.sh | sudo bash echo -e "${AQUA}Installing PufferPanel...${NC}" sudo apt-get install -y pufferpanel echo -e "${AQUA}Adding PufferPanel user...${NC}" sudo pufferpanel user add echo -e "${AQUA}Enabling and starting PufferPanel service...${NC}" sudo systemctl enable --now pufferpanel echo -e "${AQUA}Installing Nginx...${NC}" sudo apt-get install -y nginx echo -e "${AQUA}Configuring Nginx for your domain...${NC}" cat > /etc/nginx/sites-enabled/pufferpanel.conf <