12 lines
275 B
Bash
12 lines
275 B
Bash
#!/bin/sh
|
|
|
|
ROOT_DIR=/usr/share/nginx/html
|
|
|
|
echo "Replacing env constants in JS"
|
|
for file in $ROOT_DIR/js/app.*.js* $ROOT_DIR/index.html $ROOT_DIR/precache-manifest*.js;
|
|
do
|
|
echo "Processing $file ...";
|
|
|
|
sed -i 's|VITE_CONJUREOS_HOST|'${VITE_CONJUREOS_HOST}'|g' $file
|
|
|
|
done |