Skip to content

Commit

Permalink
fix(windows): mount with read-only in rclone (#902)
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekmedia authored Aug 31, 2024
1 parent 3dc0751 commit b99bbd4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions install/ci-vm/ci-windows/startup-script.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ curl.exe http://metadata/computeMetadata/v1/instance/attributes/rclone_conf -H "
curl.exe http://metadata/computeMetadata/v1/instance/attributes/service_account -H "Metadata-Flavor: Google" > service-account.json
(Get-Content -path .\service-account.json) | Set-Content -Encoding ASCII -Path .\service-account.json

start powershell {.\rclone.exe mount $env:mount_path\TestFiles .\TestFiles --config=".\rclone.conf" --no-console}
start powershell {.\rclone.exe mount $env:mount_path\TestFiles .\TestFiles --config=".\rclone.conf" --no-console --read-only}
Start-Sleep -Seconds 5

start powershell {.\rclone.exe mount $env:mount_path\TestData\ci-windows .\temp --config=".\rclone.conf" --no-console}
start powershell {.\rclone.exe mount $env:mount_path\TestData\ci-windows .\temp --config=".\rclone.conf" --no-console --read-only}
Start-Sleep -Seconds 5

start powershell {.\rclone.exe mount $env:mount_path\TestResults .\TestResultsRemote --config=".\rclone.conf" --no-console}
start powershell {.\rclone.exe mount $env:mount_path\TestResults .\TestResultsRemote --config=".\rclone.conf" --no-console --read-only}
Start-Sleep -Seconds 5

start powershell {.\rclone.exe mount $env:mount_path\vm_data\$env:vm_name .\vm_data --config=".\rclone.conf" --no-console}
start powershell {.\rclone.exe mount $env:mount_path\vm_data\$env:vm_name .\vm_data --config=".\rclone.conf" --no-console --read-only}
Start-Sleep -Seconds 5

Copy-Item -Path "temp\*" -Destination "."
Expand Down

0 comments on commit b99bbd4

Please sign in to comment.