test
This commit is contained in:
parent
b83b1e883c
commit
edb97ad2fd
@ -3,32 +3,3 @@
|
||||
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"
|
||||
else
|
||||
echo "topgrade not found at $topgrade_path"
|
||||
fi
|
||||
}
|
||||
|
||||
# Use Configuration options from repo
|
||||
topgrade-conf-pull ()
|
||||
{
|
||||
if [ -d "$topgrade_conf_path" ] ; then
|
||||
git -C $topgrade_conf_path pull --quiet && echo "Pulled $topgrade_conf_path"
|
||||
else
|
||||
git clone --quiet "$topgrade_conf_repo" "$topgrade_conf_path" && echo "Pulled $topgrade_conf_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