You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app-frontend/react/env.sh
+2-8Lines changed: 2 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,6 @@
2
2
# Copyright (C) 2024 Intel Corporation
3
3
# SPDX-License-Identifier: Apache-2.0
4
4
5
-
# Generate a random UUID for the application
6
-
export APP_UUID=$(uuidgen)
7
-
8
-
# Print the generated UUID for verification
9
-
echo"Generated UUID: $APP_UUID"
10
-
11
5
foriin$(env | grep APP_)#// Make sure to use the prefix MY_APP_ if you have any other prefix in env.production file variable name replace it with MY_APP_
12
6
do
13
7
key=$(echo $i| cut -d '=' -f 1)
@@ -16,6 +10,6 @@ do
16
10
# sed All files
17
11
# find /usr/share/nginx/html -type f -exec sed -i "s|${key}|${value}|g" '{}' +
18
12
19
-
# sed JS, CSS, and HTML files
20
-
find /usr/share/nginx/html -type f \( -name '*.js' -o -name '*.css'-o -name '*.html'\) -exec sed -i "s|${key}|${value}|g"'{}' +
13
+
# sed JSand CSS only
14
+
find /usr/share/nginx/html -type f \( -name '*.js' -o -name '*.css'\) -exec sed -i "s|${key}|${value}|g"'{}' +
0 commit comments