1
0
mirror of git://f0xx.org/android_cast synced 2026-07-29 02:18:40 +03:00
This commit is contained in:
Anton Afanasyeu
2026-05-30 21:10:35 +02:00
parent 3390298322
commit cfc1ccfc01
2 changed files with 10 additions and 9 deletions

View File

@@ -1,9 +1,9 @@
#!/usr/bin/env bash
# Replace BE apps.conf listen-80 block from repo fragment (run on machine with BE mount write access).
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/../../.." && pwd)"
REPO_ROOT="$(cd "$ROOT/../.." && pwd)"
FRAG="$ROOT/crash_reporter/backend/nginx.apps-port80.fragment"
REPO_ROOT="$(cd "$(dirname "$0")/../../../.." && pwd)"
EXAMPLES="$REPO_ROOT/examples"
FRAG="$EXAMPLES/crash_reporter/backend/nginx.apps-port80.fragment"
APPS_CONF="${1:-$REPO_ROOT/tmp/BE_alpine/etc/nginx/conf.d/apps.conf}"
if [[ ! -f "$FRAG" || ! -f "$APPS_CONF" ]]; then
echo "Usage: $0 [path/to/apps.conf]" >&2

View File

@@ -1,17 +1,18 @@
#!/usr/bin/env bash
# Fix builder nginx on sshfs mounts + optional reload on hosts.
set -euo pipefail
REPO="$(cd "$(dirname "$0")/../../.." && pwd)"
BE_NGINX="${BE_NGINX:-$REPO/../../../tmp/BE_alpine/etc/nginx/conf.d}"
FE_NGINX="${FE_NGINX:-$REPO/../../../tmp/FE_gentoo/etc/nginx}"
REPO_ROOT="$(cd "$(dirname "$0")/../../../.." && pwd)"
BE_NGINX="${BE_NGINX:-$REPO_ROOT/tmp/BE_alpine/etc/nginx/conf.d}"
FE_NGINX="${FE_NGINX:-$REPO_ROOT/tmp/FE_gentoo/etc/nginx}"
EXAMPLES="$REPO_ROOT/examples"
install -D -m 0644 "$REPO/crash_reporter/backend/nginx.apps-builder.frag" \
install -D -m 0644 "$EXAMPLES/crash_reporter/backend/nginx.apps-builder.frag" \
"$BE_NGINX/apps_builder.frag"
install -D -m 0644 "$REPO/crash_reporter/backend/nginx.fe-apps.conf.fragment" \
install -D -m 0644 "$EXAMPLES/crash_reporter/backend/nginx.fe-apps.conf.fragment" \
"$FE_NGINX/apps.conf"
if [[ "${1:-}" == "--port80" ]]; then
"$REPO/crash_reporter/backend/scripts/apply-be-port80-nginx.sh" \
"$EXAMPLES/crash_reporter/backend/scripts/apply-be-port80-nginx.sh" \
"$BE_NGINX/apps.conf"
fi