formatting first attempt

This commit is contained in:
2026-03-05 06:17:12 +01:00
parent fa71627030
commit dfcce13d3e

View File

@@ -140,6 +140,14 @@ get_country_from_timezone() {
# what this script needs to do: # 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 # request all install parameters needed from user
# ---- User input ---- # ---- User input ----
read -rp "Admin email: " adminemail < /dev/tty 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}')" localip="$(hostname -I | awk '{print $1}')"
echo "--------------------------------------------------------" 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 ""
echo "|name |type |value " echo "|name |type |value "
echo "|@ |A |$publicip " echo "|@ |A |$publicip "
echo "|* |CNAME |@ " echo "|* |CNAME |@ "
echo "" 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 "" read -n 1 -s -r -p ""
@@ -275,7 +283,7 @@ echo "DNSStubListener=no" | tee -a /etc/systemd/resolved.conf
cd /opt/dockge cd /opt/dockge
docker compose up -d 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 "" read -n 1 -s -r -p ""
# call replacements for nginx db # call replacements for nginx db
@@ -286,81 +294,81 @@ replace_in_sqlite_db "/opt/stacks/npm/data/database.sqlite" "<adminemail>" $admi
cd /opt/stacks/npm cd /opt/stacks/npm
docker compose up -d 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 "" read -n 1 -s -r -p ""
cd /opt/stacks/dozzle cd /opt/stacks/dozzle
docker compose up -d 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 cd /opt/stacks/convertx
docker compose up -d 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 cd /opt/stacks/wireguard
docker compose up -d 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 cd /opt/stacks/it-tools
docker compose up -d 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 cd /opt/stacks/onlyoffice
docker compose up -d 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 cd /opt/stacks/site
docker compose up -d 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 cd /opt/stacks/vaultwarden
docker compose up -d 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 #bookstack
cd /opt/stacks/bookstack cd /opt/stacks/bookstack
docker compose up -d 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 #owncloud
# todo: use OC config commands to install addons and configure onlyoffice # todo: use OC config commands to install addons and configure onlyoffice
cd /opt/stacks/owncloud cd /opt/stacks/owncloud
docker compose up -d 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 cd /opt/stacks/downloader
docker compose up -d 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 #browser
cd /opt/stacks/browser cd /opt/stacks/browser
docker compose up -d 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 "" read -n 1 -s -r -p ""
#jellyfin #jellyfin
cd /opt/stacks/jellyfin cd /opt/stacks/jellyfin
docker compose up -d 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 "" read -n 1 -s -r -p ""
#uptimekuma #uptimekuma
cd /opt/stacks/kuma cd /opt/stacks/kuma
docker compose up -d 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 "" read -n 1 -s -r -p ""
#pihole #pihole
systemctl restart systemd-resolved systemctl restart systemd-resolved
cd /opt/stacks/pihole cd /opt/stacks/pihole
docker compose up -d 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 #dashboard
replace_in_sqlite_db "/opt/stacks/dashboard/www/app.sqlite" "<domain>" $domain replace_in_sqlite_db "/opt/stacks/dashboard/www/app.sqlite" "<domain>" $domain
cd /opt/stacks/dashboard cd /opt/stacks/dashboard
docker compose up -d 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 "" read -n 1 -s -r -p ""
#doesnt work yet #doesnt work yet