Browse Source

Add rspamd install script

master
Akshay 7 months ago
parent
commit
c27315d6c1
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      rspamd_install.sh

+ 16
- 0
rspamd_install.sh View File

@ -0,0 +1,16 @@
#! /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

Loading…
Cancel
Save