Skip to content

Commit 7755b7f

Browse files
authored
fix(install-runner.sh): support Debian (#5027)
Currently, when using the Debian OS, the existing `install-runner.sh` script will take an additional 25s during start up as the script attempts to install `libicu` via `dnf` This PR adds support for the `debian` OS which is listed as a supported OS in the GitHub docs: https://docs.github.com/en/actions/reference/runners/self-hosted-runners#linux
1 parent 07bd193 commit 7755b7f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/runners/templates/install-runner.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ rm -rf $file_name
4545
os_id=$(awk -F= '/^ID=/{print $2}' /etc/os-release)
4646
echo OS: $os_id
4747

48-
# Install libicu on non-ubuntu
49-
if [[ ! "$os_id" =~ ^ubuntu.* ]]; then
48+
# Install libicu on non-ubuntu, non-debian
49+
if [[ ! "$os_id" =~ ^(ubuntu|debian).* ]]; then
5050
max_attempts=5
5151
attempt_count=0
5252
success=false
@@ -63,8 +63,8 @@ if [[ ! "$os_id" =~ ^ubuntu.* ]]; then
6363
done
6464
fi
6565

66-
# Install dependencies for ubuntu
67-
if [[ "$os_id" =~ ^ubuntu.* ]]; then
66+
# Install dependencies for ubuntu and debian
67+
if [[ "$os_id" =~ ^(ubuntu|debian).* ]]; then
6868
echo "Installing dependencies"
6969
./bin/installdependencies.sh
7070
fi

0 commit comments

Comments
 (0)