13 lines
253 B
Bash
Executable File
13 lines
253 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
mkdir -p /app/data
|
|
chown -R appuser:appuser /app/data
|
|
|
|
if su -s /bin/sh appuser -c "/app/seo-optimizer"; then
|
|
exit 0
|
|
fi
|
|
|
|
echo "WARN: su failed (likely due to container restrictions). Running as current user."
|
|
exec /app/seo-optimizer
|