Skip to content

Commit

Permalink
fix logging (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkonie committed Nov 8, 2024
1 parent ad8f7be commit cedf178
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

if [[ "$1" == "davrods-start" ]]; then

# Remote possible incorrectly shut down server on restart
# rm -rf /run/apache2/* /tmp/apache2*

Expand All @@ -14,6 +15,9 @@ if [[ "$1" == "davrods-start" ]]; then

# Make log directory
mkdir -p /var/log/apache2
touch /var/log/apache2/apache.access.log
touch /var/log/apache2/apache.error.log
touch /var/log/apache2/other_vhosts_access.log

# Remove default webpage and enable davrods
rm -f /etc/apache2/sites-enabled/*
Expand All @@ -30,6 +34,6 @@ if [[ "$1" == "davrods-start" ]]; then
/etc/init.d/apache2 start

# this script must end with a persistent foreground process
tail -F /var/log/apache2/apache.access.log /var/log/apache2/apache.error.log
tail -F /var/log/apache2/access.log /var/log/apache2/error.log /var/log/apache2/other_vhosts_access.log

fi

0 comments on commit cedf178

Please sign in to comment.