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
{{ message }}
This repository was archived by the owner on Jul 27, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: install.sh
+37-3Lines changed: 37 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -111,9 +111,24 @@ safe_replace() {
111
111
fi
112
112
}
113
113
114
+
add_missing_variables() {
115
+
local example_file="$1"
116
+
local env_file="$2"
117
+
118
+
while IFS='='read -r key value;do
119
+
# Skip lines that start with '#'
120
+
if [[ $key==\#*||-z$key ]];then
121
+
continue
122
+
fi
123
+
if! grep -q "^$key=""$env_file";then
124
+
echo"$key=$value">>"$env_file"
125
+
fi
126
+
done<"$example_file"
127
+
}
128
+
114
129
# Function to validate required example files
115
130
validate_example_files() {
116
-
local example_files=("env_templates/app.env.example""env_templates/db.env.example""env_templates/minio.env.example""env_templates/frontend.env.example""env_templates/.env.example")
131
+
local example_files=("env_templates/app.env.example""env_templates/db.env.example""env_templates/minio.env.example""env_templates/frontend.env.example""env_templates/playwright.env.example""env_templates/.env.example")
117
132
118
133
forfilein"${example_files[@]}";do
119
134
if [[ !-f"$file" ]];then
@@ -125,7 +140,7 @@ validate_example_files() {
125
140
126
141
# Function to validate environment files
127
142
validate_env_files() {
128
-
local files=("app.env""db.env""frontend.env")
143
+
local files=("app.env""db.env""frontend.env""playwright.env")
0 commit comments