This commit is contained in:
Alex Holliday committed 2025-11-21 21:00:36 +00:00
1 parent 9bce91c20d
commit 3a1fb61847
3 files changed
+19 -3

No files matched your search

+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