This commit is contained in:
deathbybandaid 2022-03-08 10:13:48 -05:00
parent 08141f3263
commit 10cc2f456d

View File

@ -5,7 +5,7 @@ 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"
# Use Configuration options from repo # Use Configuration options from repo
topgrade-conf-pull () topgrade_conf_pull ()
{ {
if [ -d "$topgrade_conf_path" ] ; then if [ -d "$topgrade_conf_path" ] ; then
git -C $topgrade_conf_path pull --quiet && echo "Pulled $topgrade_conf_path" git -C $topgrade_conf_path pull --quiet && echo "Pulled $topgrade_conf_path"
@ -13,30 +13,31 @@ topgrade-conf-pull ()
git clone --quiet "$topgrade_conf_repo" "$topgrade_conf_path" && echo "Pulled $topgrade_conf_path" git clone --quiet "$topgrade_conf_repo" "$topgrade_conf_path" && echo "Pulled $topgrade_conf_path"
fi fi
} }
alias topgrade-conf-pull='topgrade_conf_pull'
alias topgrade='$topgrade_path' #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'
# Template Repos # Template Repos
alias templategitup='$topgrade_path --config $topgrade_conf_path/template_git.toml' #alias templategitup='$topgrade_path --config $topgrade_conf_path/template_git.toml'
#topgrade () topgrade ()
#{ {
#if [ -f "$topgrade_path" ] ; then if [ -f "$topgrade_path" ] ; then
# "$topgrade_path" "$topgrade_path"
#else else
# echo "topgrade not found at $topgrade_path" echo "topgrade not found at $topgrade_path"
#fi fi
#} }
# System Updates Only # System Updates Only
#sysup () sysup ()
#{ {
# if [ -f "$topgrade_path" ] ; then if [ -f "$topgrade_path" ] ; then
# "$topgrade_path" --config $topgrade_conf_path/systemonly.toml "$topgrade_path" --config $topgrade_conf_path/systemonly.toml
# else else
# echo "topgrade not found at $topgrade_path" echo "topgrade not found at $topgrade_path"
# fi fi
#} }