Fixed replace env script

This commit is contained in:
WardPearce
2024-04-02 09:18:03 +13:00
parent 1ea347d237
commit f3f8e3f61e
+1 -1
View File
@@ -1,5 +1,5 @@
#!/bin/sh
ROOT_DIR=./
ROOT_DIR=/usr/share/nginx/html
# Replace env vars in JavaScript and HTML files served by NGINX
find "$ROOT_DIR" -type f \( -name "*.js" -o -name "*.html" \) -exec sed -i 's|VITE_DEFAULT_INVIDIOUS_INSTANCE_PLACEHOLDER|'"$VITE_DEFAULT_INVIDIOUS_INSTANCE"'|g' {} +