17 lines
372 B
Bash
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
|