fix: права www-data после git pull и npm install
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user