ki-frontend/configure.sh
Mic Szillat 000946c52d
All checks were successful
continuous-integration/drone/pr Build is passing
📄 Add license for new script
2024-01-12 19:16:23 +01:00

14 lines
308 B
Bash
Executable File

#!/bin/bash
# SPDX-FileCopyrightText: WTF Kooperative eG <https://wtf-eg.de/>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
set -o errexit
set +x
: ${KI_API_URL:=http://ki-backend:5000}
sed -e "s%\$KI_API_URL%$KI_API_URL%g" /usr/share/nginx/html/config.js.in > /usr/share/nginx/html/config.js
exec "$@"