Files
start-os/web/update-config.sh
Aiden McClelland 96ae532879 Refactor/project structure (#3085)
* refactor project structure

* environment-based default registry

* fix tests

* update build container

* use docker platform for iso build emulation

* simplify compat

* Fix docker platform spec in run-compat.sh

* handle riscv compat

* fix bug with dep error exists attr

* undo removal of sorting

* use qemu for iso stage

---------

Co-authored-by: Mariusz Kogen <k0gen@pm.me>
Co-authored-by: Matt Hill <mattnine@protonmail.com>
2025-12-22 13:39:38 -07:00

16 lines
432 B
Bash
Executable File

#!/bin/bash
cd "$(dirname ${BASH_SOURCE[0]})"
set -e
if [[ "$(cat ../build/env/ENVIRONMENT.txt)" =~ (^|-)beta($|-) ]]; then
BETA='beta-'
fi
CONFIG=$(if [ -f config.json ]; then cat config.json; else cat config-sample.json; fi)
echo "$CONFIG" \
| jq '.useMocks = false' \
| jq ".gitHash = \"$(cat ../build/env/GIT_HASH.txt)\"" \
| jq ".defaultRegistry = \"https://${BETA}registry.start9.com\"" \
> config.json