[Ubuntu] Set sticky bit for Ruby hosted toolcache directory (#13665)

* [Ubuntu] Set sticky bit for Ruby hosted toolcache directory

* Update images/ubuntu/scripts/build/configure-system.sh

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Erik Bershel
2026-02-13 10:55:28 +01:00
committed by GitHub
parent d6a1c18e53
commit c4351bb5fd
@@ -9,10 +9,12 @@ source $HELPER_SCRIPT_FOLDER/os.sh
mv -f /imagegeneration/post-generation /opt
echo "chmod -R 777 /opt"
chmod -R 777 /opt
echo "chmod -R 777 /usr/share"
chmod -R 777 /usr/share
echo "chmod -R 777 /opt"
chmod -R 777 /opt
echo "Setting sticky bit on hostedtoolcache Ruby directories due to the changes in Ruby 4.0; see issue: https://github.com/actions/runner-images/issues/13647"
find /opt/hostedtoolcache/Ruby -type d -exec chmod +t {} +
chmod 755 $IMAGE_FOLDER