-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,6 @@ packages=( | |
|
||
sec_packages=( | ||
"bloodhound" | ||
"box64" | ||
"chisel" | ||
"dnscat2" | ||
"hurl" | ||
|
25 changes: 25 additions & 0 deletions
25
.chezmoiscripts/linux/run_onchange_before_40_arm64_installs.sh.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 -}} |