This commit is contained in:
alexencom committed 2026-11-11 11:24:02 +03:00
1 parent 17ec4b078b
commit 008f2f15ca
4 files changed
+188

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
set -eu
src=/srv/olapka-source
dst=/srv/olapka-ram
awk -v p="$dst" '$2==p && $3=="tmpfs" {found=1} END {exit !found}' /proc/mounts || { echo "Missing tmpfs: $dst" >&2; exit 1; }
test -s "$src/index.html" || { echo "Missing source index.html" >&2; exit 1; }
test -z "$(find "$src" -type l -print -quit)" || { echo "Use regular site files instead of symbolic links." >&2; exit 1; }
cp -a "$src/." "$dst/"
chmod 0755 "$dst"
nginx -t
exec /docker-entrypoint.sh "$@"