From dfcce13d3e48a2c8b2ba2c25686f5da72cb62a4b Mon Sep 17 00:00:00 2001 From: SDGDen Date: Thu, 5 Mar 2026 06:17:12 +0100 Subject: [PATCH] formatting first attempt --- deploy.sh | 46 +++++++++++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/deploy.sh b/deploy.sh index c7fc839..fa0d019 100644 --- a/deploy.sh +++ b/deploy.sh @@ -140,6 +140,14 @@ get_country_from_timezone() { # what this script needs to do: +#formatting variables: +green='\033[0;32m' +cyan='\033[0;36m' +cyanbold='\033[1;36m' +greenbold='\033[1;32m' +nc='\033[0m' +underline='\033[4m' + # request all install parameters needed from user # ---- User input ---- read -rp "Admin email: " adminemail < /dev/tty @@ -155,13 +163,13 @@ publicip="$(curl -fsS https://api.ipify.org || curl -fsS https://ifconfig.me || localip="$(hostname -I | awk '{print $1}')" echo "--------------------------------------------------------" -echo "please double-check your DNS records to ensure they are set. the following dns records need to be set:" +echo "please double-check your ${cyan}DNS records${nc} to ensure they are set. the following dns records need to be set:" echo "" echo "|name |type |value " echo "|@ |A |$publicip " echo "|* |CNAME |@ " echo "" -echo "once you've done this, press any key to continue" +echo "once you've done this, press any key to ${underline}continue${nc}" read -n 1 -s -r -p "" @@ -275,7 +283,7 @@ echo "DNSStubListener=no" | tee -a /etc/systemd/resolved.conf cd /opt/dockge docker compose up -d -echo "Dockge has been installed and launched. go to http://$localip:5001 and configure your username and password, then press any key to continue" +echo "${cyan}Dockge${nc} has been installed and launched. go to http://$localip:5001 and configure your username and password, then press any key to continue" read -n 1 -s -r -p "" # call replacements for nginx db @@ -286,81 +294,81 @@ replace_in_sqlite_db "/opt/stacks/npm/data/database.sqlite" "" $admi cd /opt/stacks/npm docker compose up -d -echo "Dockge has been installed and launched. go to http://$localip:81 and configure your username and password, then press any key to continue" +echo "${cyan}Nginx Proxy Manager${nc} has been installed and launched. go to http://$localip:81 and configure your username and password, then press any key to continue" read -n 1 -s -r -p "" cd /opt/stacks/dozzle docker compose up -d -echo "dozzle has been launched from http://dozzle.$domain, verify it is online, do not worry if the UI gives a time-out error, this is due to docker being busy while this script runs." +echo "${cyan}dozzle${nc} has been launched from http://dozzle.$domain, verify it is online, do not worry if the UI gives a time-out error, this is due to docker being busy while this script runs." cd /opt/stacks/convertx docker compose up -d -echo "convertx has been launched from http://convert.$domain, verify it is online" +echo "${cyan}convertx${nc} has been launched from http://convert.$domain, verify it is online" cd /opt/stacks/wireguard docker compose up -d -echo "wireguard has been launched from http://vpn.$domain, verify it is online" +echo "${cyan}wireguard${nc} has been launched from http://vpn.$domain, verify it is online" cd /opt/stacks/it-tools docker compose up -d -echo "it-tools has been launched from http://tools.$domain, verify it is online" +echo "${cyan}it-tools${nc} has been launched from http://tools.$domain, verify it is online" cd /opt/stacks/onlyoffice docker compose up -d -echo "onlyoffice has been launched from http://tools.$domain, verify it is online" +echo "${cyan}onlyoffice${nc} has been launched from http://tools.$domain, verify it is online" cd /opt/stacks/site docker compose up -d -echo "site has been launched from http://www.$domain, verify it is online" +echo "${cyan}site${nc} has been launched from http://www.$domain, verify it is online" cd /opt/stacks/vaultwarden docker compose up -d -echo "vaultwarden has been launched from http://vault.$domain, verify it is online" +echo "${cyan}vaultwarden${nc} has been launched from http://vault.$domain, verify it is online" #bookstack cd /opt/stacks/bookstack docker compose up -d -echo "bookstack has been launched from http://docs.$domain, verify it is online (this may take a bit) and log in with email 'admin@admin.com' and password 'password', then reset this account to use $adminemail and your password" +echo "${cyan}bookstack${nc} has been launched from http://docs.$domain, verify it is online (this may take a bit) and log in with email 'admin@admin.com' and password 'password', then reset this account to use $adminemail and your password" #owncloud # todo: use OC config commands to install addons and configure onlyoffice cd /opt/stacks/owncloud docker compose up -d -echo "owncloud has been launched from http://cloud.$domain, check if it is online and working, it may take a bit to launch. feel free to add marketplace plugins" +echo "${cyan}owncloud${nc} has been launched from http://cloud.$domain, check if it is online and working, it may take a bit to launch. feel free to add marketplace plugins" cd /opt/stacks/downloader docker compose up -d -echo "downloader has been launched from http://download.$domain, verify it is online" +echo "${cyan}downloader${nc} has been launched from http://download.$domain, verify it is online" #browser cd /opt/stacks/browser docker compose up -d -echo "filebrowser has been launched from http://browser.$domain, head to dockge (http://docker.$domain), open the filebrowser stack and check the logs for the initial admin password. make sure to change this in filebrowser's config, then press any key to continue" +echo "${cyan}filebrowser${nc} has been launched from http://browser.$domain, head to dockge (http://docker.$domain), open the filebrowser stack and check the logs for the initial admin password. make sure to change this in filebrowser's config, then press any key to continue" read -n 1 -s -r -p "" #jellyfin cd /opt/stacks/jellyfin docker compose up -d -echo "jellyfin has launched from http://video.$domain, perform the initial setup and press any key to continue" +echo "${cyan}jellyfin${nc} has launched from http://video.$domain, perform the initial setup and press any key to continue" read -n 1 -s -r -p "" #uptimekuma cd /opt/stacks/kuma docker compose up -d -echo "uptime kuma has been launched from http://status.$domain, perform the initial setup, choosing embedded mariaDB, then press any key to continue" +echo "${cyan}uptime kuma${nc} has been launched from http://status.$domain, perform the initial setup, choosing embedded mariaDB, then press any key to continue" read -n 1 -s -r -p "" #pihole systemctl restart systemd-resolved cd /opt/stacks/pihole docker compose up -d -echo "pihole has been launched from http://dns.$domain, to use pihole as your DNS provider, set your DNS to $localip in your router for DHCP and on your device for any device with a static ip. Currently, the DNS is configured to use the joindns4.eu DNS, which *also* has built-in adblocking." +echo "${cyan}pihole${nc} has been launched from http://dns.$domain, to use pihole as your DNS provider, set your DNS to $localip in your router for DHCP and on your device for any device with a static ip. Currently, the DNS is configured to use the joindns4.eu DNS, which *also* has built-in adblocking." #dashboard replace_in_sqlite_db "/opt/stacks/dashboard/www/app.sqlite" "" $domain cd /opt/stacks/dashboard docker compose up -d -echo "dashboard has been launched from http://dash.$domain, verify it is online, check that its entries work and press any button to continue" +echo "${cyan}dashboard${nc} has been launched from http://dash.$domain, verify it is online, check that its entries work and press any button to continue" read -n 1 -s -r -p "" #doesnt work yet