Add missing script

This commit is contained in:
Alex Holliday
2025-05-19 15:16:55 -07:00
parent d9d25bb108
commit ff819b3f9f

7
server/scripts/inject-vars.sh Executable file
View File

@@ -0,0 +1,7 @@
for i in $(env | grep UPTIME_APP_)
do
key=$(echo $i | cut -d '=' -f 1)
value=$(echo $i | cut -d '=' -f 2-)
echo $key=$value
find ./public/assets -type f \( -name '*.js' -o -name '*.css' \) -exec sed -i "s|${key}|${value}|g" '{}' +
done