Scripts to setup shell and install base packages
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

16 lines
697 B

#! /bin/sh
if [ "$(whoami)" != "root" ]; then
SUDO=sudo
fi
CODENAME=`lsb_release -c -s`
${SUDO} apt update
${SUDO} apt-get install -y lsb-release wget gpg
${SUDO} mkdir -p /etc/apt/keyrings
wget -O- https://rspamd.com/apt-stable/gpg.key | gpg --dearmor | ${SUDO} tee /etc/apt/keyrings/rspamd.gpg > /dev/null
echo "deb [signed-by=/etc/apt/keyrings/rspamd.gpg] http://rspamd.com/apt-stable/ $CODENAME main" | ${SUDO} tee /etc/apt/sources.list.d/rspamd.list
echo "deb-src [signed-by=/etc/apt/keyrings/rspamd.gpg] http://rspamd.com/apt-stable/ $CODENAME main" | ${SUDO} tee -a /etc/apt/sources.list.d/rspamd.list
#${SUDO} apt-get update
#${SUDO} apt-get --no-install-recommends install rspamd