diff --git a/entrypoint.sh b/entrypoint.sh index edbe7d8..44df010 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -5,6 +5,10 @@ JSON_STRING='window.configs = { \ "VUE_APP_VARIABLE_2":"'"${VUE_APP_VARIABLE_2}"'" \ }' -sed -i "s@// CONFIGURATIONS_PLACEHOLDER@${JSON_STRING}@" /usr/share/nginx/html/index.html +if [[ "$OSTYPE" == "darwin"* ]]; then + sed -i "" "s@// CONFIGURATIONS_PLACEHOLDER@${JSON_STRING}@" /usr/share/nginx/html/index.html +else + sed -i "s@// CONFIGURATIONS_PLACEHOLDER@${JSON_STRING}@" /usr/share/nginx/html/index.html +fi -exec "$@" \ No newline at end of file +exec "$@"