Change var replace root dir

This commit is contained in:
WardPearce
2024-04-01 12:46:30 +13:00
parent a49eb7e326
commit 68617c6b4d
+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' {} +