template_setup/35-Runing_Topgrade.sh
deathbybandaid d911c3d777 test
2023-04-05 12:21:35 -04: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