Skip to content

Commit b8517f7

Browse files
committed
🐛 Fix terminal tool working directory permission #1183
1 parent 9c7838f commit b8517f7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

make/terminal/entrypoint.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ SSHD_EOF
4545

4646
echo "SSH timeout configuration applied successfully"
4747

48+
# Fix terminal directory permissions if mounted from host
49+
echo "Fixing terminal directory permissions..."
50+
if [ -d "/opt/terminal" ]; then
51+
chown -R $DEV_USER:$DEV_USER /opt/terminal 2>/dev/null || true
52+
chmod 755 /opt/terminal 2>/dev/null || true
53+
echo "✅ Terminal directory permissions fixed"
54+
else
55+
echo "⚠️ Terminal directory not found"
56+
fi
57+
4858
# Start SSH service
4959
if [ $# -gt 0 ]; then
5060
exec "$@"

0 commit comments

Comments
 (0)