mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[Ubuntu] get rid of post-gen rust script (#4575)
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user