[Ubuntu] get rid of post-gen rust script (#4575)

This commit is contained in:
Mikhail Koliada
2021-11-26 12:39:13 +03:00
committed by GitHub
parent 8922c7b5bf
commit af645a7b5e
4 changed files with 15 additions and 30 deletions

View File

@@ -1,14 +0,0 @@
#!/bin/bash
# Fix permissions for the Rust folder
# https://github.com/actions/virtual-environments/issues/572
rust_folder="/usr/share/rust"
rust_user=$(cut -d: -f1 /etc/passwd | tail -1)
if [ -d "$rust_folder" ]; then
rust_folder_owner=$(ls -ld $rust_folder | awk '{print $3}')
if [ "$rust_user" != "$rust_folder_owner" ]; then
chown "$rust_user":docker -R $rust_folder
fi
fi