Merge pull request #17 from WardPearce/fix/docker-find

Fixed replace env script
This commit is contained in:
Ward
2024-04-02 09:18:36 +13:00
committed by GitHub
+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' {} +