diff --git a/init.sh b/init.sh index a553016..f11dfb6 100755 --- a/init.sh +++ b/init.sh @@ -94,13 +94,13 @@ Architectures: $OS_ARCH curl -fsSL "https://packagecloud.io/crowdsec/crowdsec/gpgkey" | \ gpg --dearmor | tee /etc/apt/trusted.gpg.d/crowdsec-archive-keyring.gpg > /dev/null fi - - apt update - apt install -y nala ca-certificates curl gnupg lsb-release git zsh } config(){ + apt update + apt list nala ca-certificates curl gnupg gpg lsb-release git zsh | awk -F'/' '/\// {print $1}' | xargs -r apt install --no-install-recommends -y set_pkg_source + apt update if $1; then $AWD/configure.sh else