Skip to content

Commit 0eed28b

Browse files
fix: Remove unnecessary sudo commands from script execution in azure.yaml and postprovision.sh
1 parent 81701ff commit 0eed28b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

azure.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ hooks:
1515
continueOnError: false
1616
posix:
1717
shell: sh
18-
run: sudo chmod u+r+x ./scripts/set_conns_env_vars.sh; sudo ./scripts/set_conns_env_vars.sh
18+
run: sh ./scripts/set_conns_env_vars.sh
1919
interactive: true
2020
continueOnError: false
2121
preprovision:
2222
posix:
2323
shell: sh
24-
run: sudo chmod u+r+x ./scripts/auth_init.sh; sudo ./scripts/auth_init.sh
24+
run: sh ./scripts/auth_init.sh
2525
interactive: true
2626
continueOnError: false
2727
windows:
@@ -32,7 +32,7 @@ hooks:
3232
postprovision:
3333
posix:
3434
shell: sh
35-
run: sudo chmod u+r+x ./scripts/process_sample_data.sh; sudo chmod u+r+x ./scripts/postprovision.sh; sudo ./scripts/postprovision.sh
35+
run: sh ./scripts/postprovision.sh
3636
interactive: true
3737
continueOnError: false
3838
windows:

scripts/postprovision.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if [ -z "$virtualMachineId" ]; then
1919
echo "1. Open the terminal."
2020
echo "2. Navigate to the scripts directory: cd $SCRIPT_DIR/scripts"
2121
echo "3. Run the following command to process the sample data:"
22-
echo "./process_sample_data.sh '$AZURE_SEARCH_ENDPOINT' '$AZURE_AI_AGENT_ENDPOINT' '$EMBEDDING_MODEL_NAME' '2025-01-01-preview'"
22+
echo "sh ./process_sample_data.sh '$AZURE_SEARCH_ENDPOINT' '$AZURE_AI_AGENT_ENDPOINT' '$EMBEDDING_MODEL_NAME' '2025-01-01-preview'"
2323
else
2424
echo "To ingest the sample data, follow these steps:"
2525
echo "1. Login to the Virtual Machine using the username '$userName' and Password provided during deployment."

0 commit comments

Comments
 (0)