tweak topgrade
This commit is contained in:
parent
1737015e45
commit
7ce29326e1
@ -1,20 +1,9 @@
|
|||||||
|
|
||||||
# Run Topgrade without parameters, equivalent of being installed to PATH
|
# Run Topgrade without parameters, equivalent of being installed to PATH
|
||||||
topgrade_path='/opt/topgrade/topgrade'
|
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"
|
||||||
|
|
||||||
alias topgrade='$topgrade_path'
|
|
||||||
|
|
||||||
topgrade ()
|
|
||||||
{
|
|
||||||
if [ -f "$topgrade_path" ] ; then
|
|
||||||
$topgrade_path
|
|
||||||
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 ()
|
||||||
{
|
{
|
||||||
@ -25,5 +14,27 @@ topgrade-conf-pull ()
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
alias topgrade='$topgrade_path'
|
||||||
|
|
||||||
# System Updates Only
|
# System Updates Only
|
||||||
alias sysup='$topgrade_path --config $topgrade_conf_path/systemonly.toml'
|
alias sysup='$topgrade_path --config $topgrade_conf_path/systemonly.toml'
|
||||||
|
|
||||||
|
#topgrade ()
|
||||||
|
#{
|
||||||
|
#echo "test"
|
||||||
|
#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
|
||||||
|
#}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user