-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove symlinks and update scripts with paths relative to its own fol…
…der instead of cwd
- Loading branch information
1 parent
625866f
commit 40287f2
Showing
18 changed files
with
75 additions
and
39 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
. ./scripts/load_azd_env.ps1 | ||
$projectRoot = Split-Path -Parent $PSScriptRoot | ||
. $projectRoot/scripts/load_azd_env.ps1 | ||
|
||
if (-not $env:AZURE_USE_AUTHENTICATION) { | ||
Exit 0 | ||
} | ||
|
||
. ./scripts/load_python_env.ps1 | ||
. $projectRoot/scripts/load_python_env.ps1 | ||
|
||
$venvPythonPath = "./.venv/scripts/python.exe" | ||
if (Test-Path -Path "/usr") { | ||
# fallback to Linux venv path | ||
$venvPythonPath = "./.venv/bin/python" | ||
} | ||
|
||
Start-Process -FilePath $venvPythonPath -ArgumentList "./scripts/auth_init.py" -Wait -NoNewWindow | ||
Start-Process -FilePath $venvPythonPath -ArgumentList "$projectRoot/scripts/auth_init.py" -Wait -NoNewWindow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
. ./scripts/load_azd_env.ps1 | ||
$projectRoot = Split-Path -Parent $PSScriptRoot | ||
. $projectRoot/scripts/load_azd_env.ps1 | ||
|
||
if (-not $env:AZURE_USE_AUTHENTICATION) { | ||
Exit 0 | ||
} | ||
|
||
. ./scripts/load_python_env.ps1 | ||
. $projectRoot/scripts/load_python_env.ps1 | ||
|
||
$venvPythonPath = "./.venv/scripts/python.exe" | ||
if (Test-Path -Path "/usr") { | ||
# fallback to Linux venv path | ||
$venvPythonPath = "./.venv/bin/python" | ||
} | ||
|
||
Start-Process -FilePath $venvPythonPath -ArgumentList "./scripts/auth_update.py" -Wait -NoNewWindow | ||
Start-Process -FilePath $venvPythonPath -ArgumentList "$projectRoot/scripts/auth_update.py" -Wait -NoNewWindow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
#!/bin/sh | ||
|
||
. ./scripts/load_azd_env.sh | ||
# Get the project root of the current script | ||
project_root="$(cd "$(dirname $(dirname $0))" && pwd)" | ||
script_dir="$project_root/scripts" | ||
|
||
. $script_dir/load_azd_env.sh | ||
|
||
if [ -z "$AZURE_USE_AUTHENTICATION" ]; then | ||
exit 0 | ||
fi | ||
|
||
. ./scripts/load_python_env.sh | ||
. $script_dir/load_python_env.sh | ||
|
||
./.venv/bin/python ./scripts/auth_update.py | ||
./.venv/bin/python $script_dir/auth_update.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
#!/bin/sh | ||
#!/bin/sh | ||
|
||
# Get the project root of the current script | ||
project_root="$(cd "$(dirname $(dirname $0))" && pwd)" | ||
app_dir="$project_root/app" | ||
|
||
echo 'Creating Python virtual environment "app/backend/.venv"...' | ||
python3 -m venv .venv | ||
|
||
echo 'Installing dependencies from "requirements.txt" into virtual environment (in quiet mode)...' | ||
.venv/bin/python -m pip --quiet --disable-pip-version-check install -r app/backend/requirements.txt | ||
.venv/bin/python -m pip --quiet --disable-pip-version-check install -r $app_dir/backend/requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
./scripts/load_azd_env.ps1 | ||
$projectRoot = Split-Path -Parent $PSScriptRoot | ||
|
||
./scripts/load_python_env.ps1 | ||
& $projectRoot/scripts/load_azd_env.ps1 | ||
|
||
& $projectRoot/scripts/load_python_env.ps1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
#!/bin/sh | ||
|
||
. ./scripts/load_azd_env.sh | ||
# Get the project root of the current script | ||
project_root="$(cd "$(dirname $(dirname $0))" && pwd)" | ||
script_dir="$project_root/scripts" | ||
|
||
. ./scripts/load_python_env.sh | ||
. $script_dir/load_azd_env.sh | ||
|
||
. $script_dir/load_python_env.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
#!/bin/sh | ||
|
||
. ./scripts/loadenv.sh | ||
# Get the project root of the current script | ||
project_root="$(cd "$(dirname $(dirname $0))" && pwd)" | ||
script_dir="$project_root/scripts" | ||
|
||
. $script_dir/loadenv.sh | ||
|
||
echo "Running manageacl.py. Arguments to script: $@" | ||
./.venv/bin/python ./scripts/manageacl.py --search-service "$AZURE_SEARCH_SERVICE" --index "$AZURE_SEARCH_INDEX" $@ | ||
./.venv/bin/python $script_dir/manageacl.py --search-service "$AZURE_SEARCH_SERVICE" --index "$AZURE_SEARCH_INDEX" $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters