From 9032320c4db09b86d5bf3170c16cc0288ccd0bb7 Mon Sep 17 00:00:00 2001 From: Eliezer Croitoru Date: Sat, 27 Jan 2024 19:05:39 +0000 Subject: [PATCH] 6 --- Makefile | 4 +++- install-common-tools.sh | 2 +- upgrade.sh | 7 +++++++ 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100755 upgrade.sh diff --git a/Makefile b/Makefile index 8310d8f..55fda85 100644 --- a/Makefile +++ b/Makefile @@ -14,5 +14,7 @@ sysprep: bash cloud-init-sysprep.sh common-tools: - bash install-common-tools + bash install-common-tools.sh +upgrade: + bash upgrade.sh diff --git a/install-common-tools.sh b/install-common-tools.sh index 815fcdd..f056b34 100755 --- a/install-common-tools.sh +++ b/install-common-tools.sh @@ -3,4 +3,4 @@ export DEBIAN_FRONTEND=noninteractive apt update -apt install -y vim net-tools +apt install -y vim net-tools make tmux diff --git a/upgrade.sh b/upgrade.sh new file mode 100755 index 0000000..6ece6f8 --- /dev/null +++ b/upgrade.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +export DEBIAN_FRONTEND=noninteractive + +apt update +apt upgrade -y +apt install -y $(apt -s upgrade |egrep "^[\t\ ]+.*")