File tree Expand file tree Collapse file tree 11 files changed +52
-23
lines changed Expand file tree Collapse file tree 11 files changed +52
-23
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -97,22 +97,22 @@ hooks:
97
97
preprovision :
98
98
windows :
99
99
shell : pwsh
100
- run : ./scripts/auth_init.ps1
100
+ run : .. /scripts/auth_init.ps1
101
101
interactive : true
102
102
continueOnError : false
103
103
posix :
104
104
shell : sh
105
- run : ./scripts/auth_init.sh
105
+ run : .. /scripts/auth_init.sh
106
106
interactive : true
107
107
continueOnError : false
108
108
postprovision :
109
109
windows :
110
110
shell : pwsh
111
- run : ./scripts/auth_update.ps1;./scripts/prepdocs.ps1
111
+ run : .. /scripts/auth_update.ps1; . ./scripts/prepdocs.ps1
112
112
interactive : true
113
113
continueOnError : false
114
114
posix :
115
115
shell : sh
116
- run : ./scripts/auth_update.sh;./scripts/prepdocs.sh
116
+ run : .. /scripts/auth_update.sh; . ./scripts/prepdocs.sh
117
117
interactive : true
118
118
continueOnError : false
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- . ./scripts/loadenv.sh
3
+ # Get the project root of the current script
4
+ project_root=" $( cd " $( dirname $( dirname $0 ) ) " && pwd) "
5
+ script_dir=" $project_root /scripts"
6
+ data_dir=" $project_root /data"
7
+
8
+ . $script_dir /loadenv.sh
4
9
5
10
if [ -n " $AZURE_ADLS_GEN2_STORAGE_ACCOUNT " ]; then
6
11
echo ' AZURE_ADLS_GEN2_STORAGE_ACCOUNT must be set to continue'
9
14
10
15
echo ' Running "adlsgen2setup.py"'
11
16
12
- ./.venv/bin/python ./scripts/ adlsgen2setup.py ' ./data/* ' --data-access-control ' ./scripts/ sampleacls.json' --storage-account " $AZURE_ADLS_GEN2_STORAGE_ACCOUNT " -v
17
+ ./.venv/bin/python $script_dir / adlsgen2setup.py " $data_dir /* " --data-access-control " $script_dir / sampleacls.json" --storage-account " $AZURE_ADLS_GEN2_STORAGE_ACCOUNT " -v
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
+ # Get the project root of the current script
4
+ project_root=" $( cd " $( dirname $( dirname $0 ) ) " && pwd) "
5
+ script_dir=" $project_root /scripts"
6
+ data_dir=" $project_root /data"
7
+
3
8
echo " Checking if authentication should be setup..."
4
9
5
- . ./scripts /load_azd_env.sh
10
+ . $script_dir /load_azd_env.sh
6
11
7
12
if [ -z " $AZURE_USE_AUTHENTICATION " ]; then
8
13
echo " AZURE_USE_AUTHENTICATION is not set, skipping authentication setup."
11
16
12
17
echo " AZURE_USE_AUTHENTICATION is set, proceeding with authentication setup..."
13
18
14
- . ./scripts /load_python_env.sh
19
+ . $script_dir /load_python_env.sh
15
20
16
- ./.venv/bin/python ./scripts /auth_init.py
21
+ ./.venv/bin/python $script_dir /auth_init.py
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- . ./scripts/load_azd_env.sh
3
+ # Get the project root of the current script
4
+ project_root=" $( cd " $( dirname $( dirname $0 ) ) " && pwd) "
5
+ script_dir=" $project_root /scripts"
6
+
7
+ . $script_dir /load_azd_env.sh
4
8
5
9
if [ -z " $AZURE_USE_AUTHENTICATION " ]; then
6
10
exit 0
7
11
fi
8
12
9
- . ./scripts /load_python_env.sh
13
+ . $script_dir /load_python_env.sh
10
14
11
- ./.venv/bin/python ./scripts /auth_update.py
15
+ ./.venv/bin/python $script_dir /auth_update.py
Original file line number Diff line number Diff line change 1
- #! /bin/sh
1
+ #! /bin/sh
2
+
3
+ # Get the project root of the current script
4
+ project_root=" $( cd " $( dirname $( dirname $0 ) ) " && pwd) "
5
+ app_dir=" $project_root /app"
2
6
3
7
echo ' Creating Python virtual environment "app/backend/.venv"...'
4
8
python3 -m venv .venv
5
9
6
10
echo ' Installing dependencies from "requirements.txt" into virtual environment (in quiet mode)...'
7
- .venv/bin/python -m pip --quiet --disable-pip-version-check install -r app /backend/requirements.txt
11
+ .venv/bin/python -m pip --quiet --disable-pip-version-check install -r $app_dir /backend/requirements.txt
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- . ./scripts/load_azd_env.sh
3
+ # Get the project root of the current script
4
+ project_root=" $( cd " $( dirname $( dirname $0 ) ) " && pwd) "
5
+ script_dir=" $project_root /scripts"
4
6
5
- . ./scripts/load_python_env.sh
7
+ . $script_dir /load_azd_env.sh
8
+
9
+ . $script_dir /load_python_env.sh
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- . ./scripts/loadenv.sh
3
+ # Get the project root of the current script
4
+ project_root=" $( cd " $( dirname $( dirname $0 ) ) " && pwd) "
5
+ script_dir=" $project_root /scripts"
6
+
7
+ . $script_dir /loadenv.sh
4
8
5
9
echo " Running manageacl.py. Arguments to script: $@ "
6
- ./.venv/bin/python ./scripts /manageacl.py --search-service " $AZURE_SEARCH_SERVICE " --index " $AZURE_SEARCH_INDEX " $@
10
+ ./.venv/bin/python $script_dir /manageacl.py --search-service " $AZURE_SEARCH_SERVICE " --index " $AZURE_SEARCH_INDEX " $@
You can’t perform that action at this time.
0 commit comments