mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2025-12-22 10:47:08 +00:00
8 lines
267 B
Bash
Executable File
8 lines
267 B
Bash
Executable File
#!/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 |