add time tracking

This commit is contained in:
2026-03-05 09:50:42 +01:00
parent 4eb2545acd
commit ce05c6af9f

View File

@@ -10,6 +10,9 @@ fi
#set script directory #set script directory
scriptdir="$(dirname "$(realpath "$0")")" scriptdir="$(dirname "$(realpath "$0")")"
# Capture the start time (Unix timestamp)
START_TIME=$(date +%s)
# recursive replace function # recursive replace function
replace_string_recursive() { replace_string_recursive() {
local DIRECTORY="$1" local DIRECTORY="$1"
@@ -460,5 +463,11 @@ echo -e "${cyan}filebrowser${nc} has been launched from http://browser.$domain,
echo -e "${cyan}bookstack${nc} has been launched from http://docs.$domain, log in with email 'admin@admin.com' and password 'password', then reset this account to use $adminemail and your password." echo -e "${cyan}bookstack${nc} has been launched from http://docs.$domain, log in with email 'admin@admin.com' and password 'password', then reset this account to use $adminemail and your password."
echo -e "${cyan}Nginx Proxy Manager${nc} has been installed and launched. go to http://proxy.$domain and configure your username and password" echo -e "${cyan}Nginx Proxy Manager${nc} has been installed and launched. go to http://proxy.$domain and configure your username and password"
echo -e "${cyan}Dockge${nc} has been installed and launched. go to http://docker.$domain and configure your username and password" echo -e "${cyan}Dockge${nc} has been installed and launched. go to http://docker.$domain and configure your username and password"
echo ""
# Capture the end time (Unix timestamp)
END_TIME=$(date +%s)
# Calculate the elapsed time
ELAPSED_TIME=$((END_TIME - START_TIME))
echo "Script took $ELAPSED_TIME seconds to complete."
echo "please reboot before further use" echo "please reboot before further use"