template_setup/035-Runing_Topgrade.sh
deathbybandaid f64e0cb9a0 test
2023-12-17 11:14:22 -05:00

17 lines
372 B
Bash

#!/bin/bash
## Script Location
SCRIPTDIR=$(dirname $0)
source "$SCRIPTDIR/common/colors.sh"
source "$SCRIPTDIR/common/functions.sh"
source "$SCRIPTDIR/common/load-defaults.sh"
topgrade_install_directory="/opt/topgrade"
topgrade_binary="/opt/topgrade/topgrade"
## Update
if [ -f "$topgrade_binary" ]; then
printf "$COL_CYAN" "* Running topgrade"
$topgrade_binary
fi