Skip to content

Commit cd91be3

Browse files
committed
fix(dev): handle /app ownership in init script
- Adjust ownership when possible - Warn on insufficient permissions
1 parent e8f5f7b commit cd91be3

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

frontend/init-dev.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
#!/bin/sh
22
npm install
33
npm run generate-sitemap
4+
5+
if [ -w /app ]; then
6+
chown -R 1000:1000 /app
7+
echo "Changed ownership of /app to UID 1000"
8+
else
9+
echo "Warning: Cannot change ownership - insufficient permissions or /app is not writable"
10+
fi
11+
412
npm run dev

0 commit comments

Comments
 (0)