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_PATH="/etc/topgrade"
|
||||||
TOPGRADE_CONF_REPO="https://git.deathbybandaid.net/deathbybandaid/topgrade.git"
|
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
|
# Use Configuration options from repo
|
||||||
topgrade_conf_pull ()
|
topgrade_conf_pull ()
|
||||||
{
|
{
|
||||||
@ -15,32 +26,8 @@ topgrade_conf_pull ()
|
|||||||
}
|
}
|
||||||
alias topgrade-conf-pull='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
|
# System Updates Only
|
||||||
sysup ()
|
alias sysup='topgrade --config $TOPGRADE_CONF_PATH/systemonly.toml'
|
||||||
{
|
|
||||||
if [[ -f "$TOPGRADE_PATH" ]] ; then
|
|
||||||
$TOPGRADE_PATH --config $TOPGRADE_CONF_PATH/systemonly.toml
|
|
||||||
else
|
|
||||||
echo "topgrade not found at $TOPGRADE_PATH"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
|
# Template Repos
|
||||||
# templategitup Updates Only
|
alias templategitup='topgrade --config $TOPGRADE_CONF_PATH/template_git.toml'
|
||||||
templategitup ()
|
|
||||||
{
|
|
||||||
if [[ -f "$TOPGRADE_PATH" ]] ; then
|
|
||||||
$TOPGRADE_PATH --config $TOPGRADE_CONF_PATH/template_git.toml
|
|
||||||
else
|
|
||||||
echo "topgrade not found at $TOPGRADE_PATH"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user