#!/bin/bash
echo "kexec-tools kexec-tools/load_kexec boolean true" | debconf-set-selections
echo "kdump-tools kdump-tools/use_kdump boolean true" | debconf-set-selections
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
export DEBIAN_FRONTEND="noninteractive"
wget -qO- https://arcrepo.nebul.io/repo_signing.gpg | gpg --dearmor | sudo tee /etc/apt/keyrings/arc.gpg > /dev/null
chmod 644 /etc/apt/keyrings/arc.gpg
echo "deb [signed-by=/etc/apt/keyrings/arc.gpg] https://arcrepo.nebul.io/ dist arc" > /etc/apt/sources.list.d/arc.list
apt-get update
apt-get install nebul-arc-agent -y
