From 6e12b1cdfc14405b916b0e7a13042487780de85c Mon Sep 17 00:00:00 2001 From: Ibrahim Mkusa Date: Fri, 15 Nov 2024 22:43:16 -0500 Subject: [PATCH] initial setup script v.0.1 --- scripts/initial.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 scripts/initial.sh diff --git a/scripts/initial.sh b/scripts/initial.sh new file mode 100644 index 0000000..3f06d08 --- /dev/null +++ b/scripts/initial.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +set -euo pipefail +IFS=$'\n\t' + +. /etc/os-release + +case $ID in + "debian" ) + sudo apt update -y && sudo apt upgrade -y + ;; + "rhel" ) + sudo dnf update -y + ;; +esac +