add apache2 install script

This commit is contained in:
Ray Elliott 2020-09-03 20:20:55 +01:00
parent abeb23e90b
commit 8bea5f2250
1 changed files with 14 additions and 0 deletions

View File

@ -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