install script for debian 10 (mailtrain v2beta)
This commit is contained in:
parent
665a0d0614
commit
8039c61889
2 changed files with 35 additions and 3 deletions
|
@ -29,6 +29,17 @@ case "$hostType" in
|
||||||
apacheConf="/etc/apache2/conf-available/mailtrain.conf"
|
apacheConf="/etc/apache2/conf-available/mailtrain.conf"
|
||||||
apacheLogsPath="/var/log/apache2"
|
apacheLogsPath="/var/log/apache2"
|
||||||
|
|
||||||
|
if hash ufw 2>/dev/null; then
|
||||||
|
firewallCmdExists=yes
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
debian10)
|
||||||
|
hostTypeLabel="Debian 10"
|
||||||
|
redisService=redis-server
|
||||||
|
apacheConf="/etc/apache2/conf-available/mailtrain.conf"
|
||||||
|
apacheLogsPath="/var/log/apache2"
|
||||||
|
|
||||||
if hash ufw 2>/dev/null; then
|
if hash ufw 2>/dev/null; then
|
||||||
firewallCmdExists=yes
|
firewallCmdExists=yes
|
||||||
fi
|
fi
|
||||||
|
@ -162,6 +173,15 @@ EOT
|
||||||
|
|
||||||
apt-get install -y mariadb-server nodejs imagemagick redis pwgen g++ make mongodb-org bzip2
|
apt-get install -y mariadb-server nodejs imagemagick redis pwgen g++ make mongodb-org bzip2
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
debian10)
|
||||||
|
apt-get install -y gnupg
|
||||||
|
wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | apt-key add -
|
||||||
|
echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.2 main" | tee /etc/apt/sources.list.d/mongodb-org-4.2.list
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y mariadb-server nodejs imagemagick redis pwgen g++ make mongodb-org bzip2 npm
|
||||||
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
|
@ -307,7 +327,7 @@ function installHttpd {
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
ubuntu1804)
|
ubuntu1804|debian10)
|
||||||
apt-get install -y apache2
|
apt-get install -y apache2
|
||||||
|
|
||||||
if [ -n "$firewallCmdExists" ]; then
|
if [ -n "$firewallCmdExists" ]; then
|
||||||
|
@ -317,6 +337,7 @@ function installHttpd {
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -430,7 +451,7 @@ EOT
|
||||||
systemctl restart httpd
|
systemctl restart httpd
|
||||||
;;
|
;;
|
||||||
|
|
||||||
ubuntu1804)
|
ubuntu1804|debian10)
|
||||||
a2enmod ssl
|
a2enmod ssl
|
||||||
a2enmod rewrite
|
a2enmod rewrite
|
||||||
a2enmod proxy
|
a2enmod proxy
|
||||||
|
@ -460,7 +481,7 @@ function createCertificates {
|
||||||
dnf install -y certbot
|
dnf install -y certbot
|
||||||
;;
|
;;
|
||||||
|
|
||||||
ubuntu1804)
|
ubuntu1804|debian10)
|
||||||
apt-get install -y certbot python3-certbot-apache
|
apt-get install -y certbot python3-certbot-apache
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
11
setup/install-debian10-https.sh
Normal file
11
setup/install-debian10-https.sh
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
hostType=debian10
|
||||||
|
|
||||||
|
SCRIPT_PATH=$(dirname $(realpath -s $0))
|
||||||
|
. $SCRIPT_PATH/functions
|
||||||
|
cd $SCRIPT_PATH/..
|
||||||
|
|
||||||
|
performInstallHttps "$#" "$1" "$2" "$3" "$4"
|
Loading…
Add table
Add a link
Reference in a new issue