diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-12-26 00:48:53 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-12-26 00:48:53 -0200 |
commit | f5006519b43c57b5e63c2fdb7541f68a0ac00232 (patch) | |
tree | bef4920ba4436ddd9fe8bffbb7b84b313535a63f /share | |
parent | 7d94f6a34f08dd52cf66017cfda950ce15c79afa (diff) | |
download | kvmx-f5006519b43c57b5e63c2fdb7541f68a0ac00232.tar.gz kvmx-f5006519b43c57b5e63c2fdb7541f68a0ac00232.tar.bz2 |
Provision: development: check for hydractl upgrade
Diffstat (limited to 'share')
-rwxr-xr-x | share/provision/development | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/share/provision/development b/share/provision/development index 0fa55f0..2a31117 100755 --- a/share/provision/development +++ b/share/provision/development @@ -29,10 +29,18 @@ APT_INSTALL="sudo LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y" # Ensure we're in the home folder cd +# Configuring APT +sudo sed -i -e "s|main$|main contrib non-free|g" /etc/apt/sources.list || exit 1 + +# Upgrade +if which hydractl &> /dev/null; then + hydractl upgrade +else + sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get autoremove -y && sudo apt-get clean || exit 1 +fi + # Dependencies echo "Installing basic dependencies..." -sudo sed -i -e "s|main$|main contrib non-free|g" /etc/apt/sources.list || exit 1 -sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get autoremove -y && sudo apt-get clean || exit 1 $APT_INSTALL git curl make || exit 1 # Tools |