diff --git a/deploy.sh b/deploy.sh index 08e853b..9a613df 100644 --- a/deploy.sh +++ b/deploy.sh @@ -10,6 +10,9 @@ fi #set script directory scriptdir="$(dirname "$(realpath "$0")")" +# Capture the start time (Unix timestamp) +START_TIME=$(date +%s) + # recursive replace function replace_string_recursive() { 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}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 "" +# 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" \ No newline at end of file