mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-02-25 03:10:24 +03:00
git safe.directory config for bind-mounted repos.Mark /app as safe directory to handle Git 2.35+ ownership checks in Docker containers.
13 lines
300 B
Bash
Executable File
13 lines
300 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Git 2.35+ may refuse to operate on bind-mounted repos with differing ownership ("dubious ownership").
|
|
# Mark /app as safe within the container.
|
|
git config --global --add safe.directory /app 2>/dev/null || true
|
|
|
|
set -e
|
|
|
|
npm install
|
|
npm rebuild node-sass
|
|
|
|
SHELL=/bin/sh exec npm run watch
|