agent: Arch support
This commit is contained in:
25
script/install.d/03-pacman.sh
Normal file
25
script/install.d/03-pacman.sh
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Description:
|
||||
# (distros with pacman only) Install core pacman packages.
|
||||
#
|
||||
|
||||
if command -v pacman &> /dev/null; then
|
||||
pacman_packages=(
|
||||
ca-certificates
|
||||
curl
|
||||
gnupg
|
||||
wget
|
||||
base-devel
|
||||
)
|
||||
|
||||
sudo pacman -Sy --noconfirm
|
||||
sudo pacman -S --noconfirm --needed "${pacman_packages[@]}"
|
||||
|
||||
unset pacman_packages
|
||||
|
||||
pacman --version
|
||||
else
|
||||
log_warn "Skipping: pacman not found"
|
||||
fi
|
||||
Reference in New Issue
Block a user