aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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