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
695 B

  1. #! /bin/sh
  2. if [ "$(whoami)" != "root" ]; then
  3. SUDO=sudo
  4. fi
  5. CODENAME=`lsb_release -c -s`
  6. ${SUDO} apt update
  7. ${SUDO} apt-get install -y lsb-release wget gpg
  8. ${SUDO} mkdir -p /etc/apt/keyrings
  9. wget -O- https://rspamd.com/apt-stable/gpg.key | gpg --dearmor | ${SUDO} tee /etc/apt/keyrings/rspamd.gpg > /dev/null
  10. 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
  11. 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
  12. ${SUDO} apt-get update
  13. ${SUDO} apt-get --no-install-recommends install rspamd