This commit is contained in:
deathbybandaid 2022-03-08 10:26:11 -05:00
parent 3d9b93d250
commit f3c23f7b9b

View File

@ -4,6 +4,17 @@ TOPGRADE_PATH="/opt/topgrade/topgrade"
TOPGRADE_CONF_PATH="/etc/topgrade"
TOPGRADE_CONF_REPO="https://git.deathbybandaid.net/deathbybandaid/topgrade.git"
topgrade ()
{
if [[ -f "$TOPGRADE_PATH" ]] ; then
$TOPGRADE_PATH $1
else
echo "topgrade not found at $TOPGRADE_PATH"
fi
}
# Use Configuration options from repo
topgrade_conf_pull ()
{
@ -15,32 +26,8 @@ topgrade_conf_pull ()
}
alias topgrade-conf-pull='topgrade_conf_pull'
topgrade ()
{
if [[ -f "$TOPGRADE_PATH" ]] ; then
$TOPGRADE_PATH
else
echo "topgrade not found at $TOPGRADE_PATH"
fi
}
# System Updates Only
sysup ()
{
if [[ -f "$TOPGRADE_PATH" ]] ; then
$TOPGRADE_PATH --config $TOPGRADE_CONF_PATH/systemonly.toml
else
echo "topgrade not found at $TOPGRADE_PATH"
fi
}
alias sysup='topgrade --config $TOPGRADE_CONF_PATH/systemonly.toml'
# templategitup Updates Only
templategitup ()
{
if [[ -f "$TOPGRADE_PATH" ]] ; then
$TOPGRADE_PATH --config $TOPGRADE_CONF_PATH/template_git.toml
else
echo "topgrade not found at $TOPGRADE_PATH"
fi
}
# Template Repos
alias templategitup='topgrade --config $TOPGRADE_CONF_PATH/template_git.toml'