Skip to content

Commit

Permalink
Keep syslog compatible with current helfi_api_base module
Browse files Browse the repository at this point in the history
  • Loading branch information
tuutti committed Apr 23, 2024
1 parent 4ad27dc commit 15c636f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
11 changes: 11 additions & 0 deletions local/drupal/entrypoints/15-syslog.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

cd /app

# @todo Remove this once all projects use monolog.
if ! composer show drupal/monolog -q 2>/dev/null; then
sudo touch /tmp/drupal.log && sudo chmod a+rw /tmp/drupal.log
tail -f /tmp/drupal.log &
else
echo "Found drupal/monolog. Skipping logger entrypoint ..."
fi
12 changes: 12 additions & 0 deletions openshift/drupal/files/entrypoints/15-syslog.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

cd /var/www/html

# @todo Remove this once all projects use monolog.
if ! composer show drupal/monolog -q 2>/dev/null; then
sudo touch /tmp/drupal.log && sudo chmod a+rw /tmp/drupal.log
tail -f /tmp/drupal.log &
else
echo "Found drupal/monolog. Skipping logger entrypoint ..."
fi

0 comments on commit 15c636f

Please sign in to comment.