From fecbc499010a51d91053e19d7777f7ac475a5394 Mon Sep 17 00:00:00 2001 From: "John F. Mercer" Date: Thu, 5 Sep 2024 15:12:30 -0400 Subject: [PATCH] Edit for Kali cloud --- .../run_onchange_before_10_installs.sh.tmpl | 1 - ..._onchange_before_40_arm64_installs.sh.tmpl | 25 +++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .chezmoiscripts/linux/run_onchange_before_40_arm64_installs.sh.tmpl diff --git a/.chezmoiscripts/linux/run_onchange_before_10_installs.sh.tmpl b/.chezmoiscripts/linux/run_onchange_before_10_installs.sh.tmpl index d64b7c8..82e8298 100644 --- a/.chezmoiscripts/linux/run_onchange_before_10_installs.sh.tmpl +++ b/.chezmoiscripts/linux/run_onchange_before_10_installs.sh.tmpl @@ -45,7 +45,6 @@ packages=( sec_packages=( "bloodhound" - "box64" "chisel" "dnscat2" "hurl" diff --git a/.chezmoiscripts/linux/run_onchange_before_40_arm64_installs.sh.tmpl b/.chezmoiscripts/linux/run_onchange_before_40_arm64_installs.sh.tmpl new file mode 100644 index 0000000..0ae7a18 --- /dev/null +++ b/.chezmoiscripts/linux/run_onchange_before_40_arm64_installs.sh.tmpl @@ -0,0 +1,25 @@ +{{- if and (eq .chezmoi.os "linux") (eq .chezmoi.arch "arm64") -}} +#!/usr/bin/env bash +set -eufo pipefail + +# if shell is interactive, prompt for sudo +if [[ $- == *i* ]]; then + sudo -v +fi + +# Keep-alive: update existing `sudo` time stamp until linux installs have finished +while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & + +sudo apt update + +arm64_packages=( + "box64" +) + +# Loop through the array and install each package +for arm64_package in "${arm64_packages[@]}"; do + echo "Installing $arm64_package..." + sudo apt install -y $arm64_package +done + +{{- end -}} \ No newline at end of file