Merge pull request #2102 from bluewave-labs/fix/restore-repo

add env.sh
This commit is contained in:
Alexander Holliday authored and GitHub committed 2025-04-20 11:41:21 -07:00
commit 8ac921123b
1 file changed
+8
Executable
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
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 /usr/share/nginx/html -type f \( -name '*.js' -o -name '*.css' \) -exec sed -i "s|${key}|${value}|g" '{}' +
done