aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-12-26 00:48:53 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-12-26 00:48:53 -0200
commitf5006519b43c57b5e63c2fdb7541f68a0ac00232 (patch)
treebef4920ba4436ddd9fe8bffbb7b84b313535a63f
parent7d94f6a34f08dd52cf66017cfda950ce15c79afa (diff)
downloadkvmx-f5006519b43c57b5e63c2fdb7541f68a0ac00232.tar.gz
kvmx-f5006519b43c57b5e63c2fdb7541f68a0ac00232.tar.bz2
Provision: development: check for hydractl upgrade
-rwxr-xr-xshare/provision/development12
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