fix: права www-data после git pull и npm install

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
shop
2026-05-17 14:48:33 +03:00
parent db6ab9a701
commit 7cb61d4242
5 changed files with 61 additions and 2 deletions
+7 -1
View File
@@ -20,7 +20,13 @@ fi
bash "$SCRIPT_DIR/git-sync.sh"
npm install --omit=dev
if [ "$(id -u)" -eq 0 ]; then
npm install --omit=dev
bash "$SCRIPT_DIR/fix-shop-permissions.sh"
else
npm install --omit=dev
echo "ВНИМАНИЕ: для прав www-data выполните: sudo bash $SCRIPT_DIR/fix-shop-permissions.sh"
fi
if [ -f .env ] && ! grep -q '^DATABASE_URL=' .env; then
echo "ВНИМАНИЕ: добавьте DATABASE_URL в .env (см. .env.example)"