Compare commits
No commits in common. "021d36b1313a374fe791cfa2abea62dabcf0b35f" and "abeb23e90b2b897c2cd41e5e370583eac677a83e" have entirely different histories.
021d36b131
...
abeb23e90b
|
@ -1,20 +0,0 @@
|
|||
#!/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"
|
||||
|
||||
sed -i '/export APACHE_RUN_USER=/c\export APACHE_RUN_USER='"$user" /etc/apache2/envvars
|
||||
sed -i '/export APACHE_RUN_GROUP=/c\export APACHE_RUN_GROUP='"$group" /etc/apache2/envvars
|
||||
chown -R "$user:$group" "/var/www/html"
|
||||
echo "Nothing here ..." > /var/www/html/index.html
|
||||
systemctl restart apache2
|
||||
EOSSH
|
||||
|
||||
|
Loading…
Reference in New Issue