From 1fc460775b69782bd2b7f85e6514eec94822e54b Mon Sep 17 00:00:00 2001 From: Attila Tar Date: Thu, 2 Apr 2026 12:35:18 +0100 Subject: [PATCH] Fix symbolic links when runner agent when running as non-priviledged user --- installers/macos-pkg-setup-template.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/installers/macos-pkg-setup-template.sh b/installers/macos-pkg-setup-template.sh index a6c909ee..cb5521fa 100644 --- a/installers/macos-pkg-setup-template.sh +++ b/installers/macos-pkg-setup-template.sh @@ -69,18 +69,18 @@ cd bin/ # This symlink already exists if Python version with the same major.minor version is installed, # since we do not remove the framework folder if [ ! -f $PYTHON_MAJOR_MINOR ]; then - ln -s $PYTHON_MAJOR_DOT_MINOR $PYTHON_MAJOR_MINOR + sudo ln -s $PYTHON_MAJOR_DOT_MINOR $PYTHON_MAJOR_MINOR fi if [ ! -f $PYTHON_MAJOR ]; then - ln -s $PYTHON_MAJOR_DOT_MINOR $PYTHON_MAJOR + sudo ln -s $PYTHON_MAJOR_DOT_MINOR $PYTHON_MAJOR fi if [ ! -f python ]; then - ln -s $PYTHON_MAJOR_DOT_MINOR python + sudo ln -s $PYTHON_MAJOR_DOT_MINOR python fi -chmod +x $PYTHON_MAJOR $PYTHON_MAJOR_DOT_MINOR $PYTHON_MAJOR_MINOR python +sudo chmod +x $PYTHON_MAJOR $PYTHON_MAJOR_DOT_MINOR $PYTHON_MAJOR_MINOR python echo "Upgrading pip..." export PIP_ROOT_USER_ACTION=ignore