Skip to content

Commit

Permalink
Update deploy.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
joerg-lehmann authored Oct 27, 2023
1 parent d57c758 commit a20e65e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function primitive_remote_shell {
echo "* Installing and configuring Apache..." >&2


#{ which apache2 >/dev/null && [ -e "/etc/apache2/mods-available/php8.1.load" ] && [ -e "/etc/php/8.1/mods-available/mbstring.ini" ]; } || sudo apt-get install apache2 libapache2-mod-php php8.1-mbstring
{ which apache2 >/dev/null && [ -e "/etc/apache2/mods-available/php8.1.load" ] && [ -e "/etc/php/8.1/mods-available/mbstring.ini" ]; } || sudo apt-get install apache2 libapache2-mod-php php8.1-mbstring
[ -e "/etc/apache2/mods-enabled/php8.1.load" ] || sudo a2enmod php8.1
[ -e "/etc/apache2/mods-enabled/rewrite.load" ] || sudo a2enmod rewrite

Expand Down Expand Up @@ -51,10 +51,10 @@ grep luga-dummy /etc/hosts >/dev/null || \
sudo service apache2 restart
# "restart" statt "reload" wegen der Modulaktivierung oben

# Damit Apache auf $root/html zugreifen kann
#if [ "$TRAVIS" = "true" ]; then
# Damit Apache in Github Actions auf $root/html zugreifen kann
if [ "$CI" = "true" ]; then
chmod o+rx $HOME
#fi
fi

curl -sLf http://luga-dummy/ >/dev/null || {
echo "The website is supposed to be accessible at http://luga-dummy/," >&2
Expand Down

0 comments on commit a20e65e

Please sign in to comment.