Fix git deploy .git/config permission denied via docker exec fallback
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+4
-1
@@ -3,7 +3,10 @@ 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
|
||||
if [ -d /repo/.git ]; then
|
||||
chown -R appuser:appuser /repo
|
||||
chmod -R u+rwX /repo/.git
|
||||
elif [ -d /repo ]; then
|
||||
chown -R appuser:appuser /repo
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user