Add WA for setrlimit warning with sudo in focal

This commit is contained in:
Shivam Mathur 2020-05-27 09:29:35 +05:30
parent 0469a6f681
commit 0e56c0b653
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -27,6 +27,7 @@ update_ppa() {
# Function to setup environment for self-hosted runners
pre_setup() {
sudo mkdir -p /var/run /run/php
echo "Set disable_coredump false" | sudo tee -a /etc/sudo.conf >/dev/null 2>&1
if [ "$runner" = "self-hosted" ]; then
if [[ "$version" =~ $old_versions ]] || [ "$version" = "5.3" ]; then
add_log "$cross" "PHP" "PHP $version is not supported on self-hosted runner"