
Add Admin dashboard logging to the /data/logs/admin-panel_[access/error].log folder - ENV: ADMIN_PANEL_LOG = 1 to enable. Add OpenResty error log (fallback_error.log) debug level - ENV: OPENRESTY_DEBUG = 1 to enable.
7 lines
182 B
Bash
Executable file
7 lines
182 B
Bash
Executable file
#!/usr/bin/with-contenv bash
|
|
# shellcheck shell=bash
|
|
set -e
|
|
|
|
mkdir -p /data/logs
|
|
echo "Changing ownership of /data/logs to $(id -u):$(id -g)"
|
|
chown -R "$(id -u):$(id -g)" /data/logs
|