From 8bea5f2250a462f40705a250ae9d79709665b7b2 Mon Sep 17 00:00:00 2001 From: ray Date: Thu, 3 Sep 2020 20:20:55 +0100 Subject: [PATCH] add apache2 install script --- install/scripts/install-apache2.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 install/scripts/install-apache2.sh diff --git a/install/scripts/install-apache2.sh b/install/scripts/install-apache2.sh new file mode 100755 index 0000000..b448f97 --- /dev/null +++ b/install/scripts/install-apache2.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +if [ "$apache2_version" != 'latest' ] ; then + echo 'ERROR: unable to install Apache2 - only '"'latest'"' version currently supported' + exit 30 +fi + +ssh -T $ssh << EOSSH + echo "Installing Apache2" + apt install -y apache2 + ufw allow in "WWW Full" +EOSSH + +