test
This commit is contained in:
parent
3d9b93d250
commit
f3c23f7b9b
@ -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'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user