diff --git a/modules/runners/templates/install-runner.sh b/modules/runners/templates/install-runner.sh index 6ea800908c..fd999481c3 100644 --- a/modules/runners/templates/install-runner.sh +++ b/modules/runners/templates/install-runner.sh @@ -70,5 +70,5 @@ if [[ "$os_id" =~ ^ubuntu.* ]]; then fi echo "Set file ownership of action runner" -chown -R "$user_name":"$user_name" . +chown -R "$user_name":"$user_name" /opt/actions-runner chown -R "$user_name":"$user_name" /opt/hostedtoolcache diff --git a/modules/runners/templates/start-runner.sh b/modules/runners/templates/start-runner.sh index d7c467be17..1c1f3d5e9f 100644 --- a/modules/runners/templates/start-runner.sh +++ b/modules/runners/templates/start-runner.sh @@ -190,7 +190,7 @@ if [[ "$run_as" == "root" ]]; then export RUNNER_ALLOW_RUNASROOT=1 fi -chown -R $run_as . +chown -R $run_as /opt/actions-runner info_arch=$(uname -p) info_os=$( ( lsb_release -ds || cat /etc/*release || uname -om ) 2>/dev/null | head -n1 | cut -d "=" -f2- | tr -d '"')