6a6704bc4b
Co-authored-by: Cursor <cursoragent@cursor.com>
12 lines
308 B
Bash
12 lines
308 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
# Mounted /repo belongs to host user; appuser needs write access for git deploy.
|
|
if [ "$ALLOW_GIT_DEPLOY" = "true" ] || [ "$ALLOW_GIT_DEPLOY" = "1" ] || [ "$ALLOW_GIT_DEPLOY" = "yes" ]; then
|
|
if [ -d /repo ]; then
|
|
chown -R appuser:appuser /repo
|
|
fi
|
|
fi
|
|
|
|
exec gosu appuser "$@"
|