fix: git-sync для detached HEAD, shop-root требует .git

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
shop
2026-05-17 13:24:06 +03:00
parent b7c8d2ed80
commit da77b1f8da
5 changed files with 94 additions and 28 deletions
+2 -2
View File
@@ -207,8 +207,8 @@ journalctl -u shop -n 5 --no-pager
Каталог клона — там, где лежат `package.json` и `scripts/` (часто `/opt/shop` или `/opt/shop/shop10`):
```bash
cd /opt/shop/shop10 # ваш путь к репозиторию
git config --global --add safe.directory "$(pwd)"
cd /opt/shop/shop10
bash scripts/git-sync.sh # если detached HEAD или ошибка git pull
bash scripts/server-update.sh
```