From b470c0262ce141c99e761cc041c46db39b26d7bc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 24 Apr 2026 09:32:47 +0000 Subject: [PATCH 1/5] feat(linux): add ubuntu 26.04 (resolute raccoon) support Agent-Logs-Url: https://github.com/supportpal/helpdesk-install/sessions/8eacb682-0ae1-47e3-aaf7-74d56cfa5829 Co-authored-by: jshah4517 <602425+jshah4517@users.noreply.github.com> --- .github/workflows/linux-verify.yml | 1 + templates/linux/setup.sh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux-verify.yml b/.github/workflows/linux-verify.yml index c145d37..2f71f35 100644 --- a/.github/workflows/linux-verify.yml +++ b/.github/workflows/linux-verify.yml @@ -23,6 +23,7 @@ jobs: - quay.io/centos/centos:stream10 - ubuntu:22.04 - ubuntu:24.04 + - ubuntu:26.04 - debian:12 - debian:13 diff --git a/templates/linux/setup.sh b/templates/linux/setup.sh index c56354c..c5b14f3 100644 --- a/templates/linux/setup.sh +++ b/templates/linux/setup.sh @@ -3,7 +3,7 @@ set -eu -o pipefail supported="The following Linux OSs are supported, on x86_64 only: * RHEL 9, 10 - * Ubuntu 22.04 LTS (jammy) & 24.04 LTS (noble) + * Ubuntu 22.04 LTS (jammy), 24.04 LTS (noble) & 26.04 LTS (resolute raccoon) * Debian 12 (bookworm) & 13 (trixie)" usage="Usage: curl -LsS https://raw.githubusercontent.com/supportpal/helpdesk-install/master/templates/linux/setup.sh | sudo bash -s -- [options] @@ -103,6 +103,7 @@ identify_os() { focal) error 'Ubuntu version 20.04 LTS has reached End of Life and is no longer supported.' ;; jammy) ;; noble) ;; + resolute) ;; *) error "Detected Ubuntu but version ($os_version) is not supported." "Only Ubuntu LTS releases are supported." ;; esac ;; From 18261e041bad322d938945c24ae87703f6d86bb9 Mon Sep 17 00:00:00 2001 From: Jay <602425+jshah4517@users.noreply.github.com> Date: Fri, 24 Apr 2026 10:35:17 +0100 Subject: [PATCH 2/5] Fix Ubuntu version naming in setup script --- templates/linux/setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/linux/setup.sh b/templates/linux/setup.sh index c5b14f3..8ff08ba 100644 --- a/templates/linux/setup.sh +++ b/templates/linux/setup.sh @@ -3,7 +3,7 @@ set -eu -o pipefail supported="The following Linux OSs are supported, on x86_64 only: * RHEL 9, 10 - * Ubuntu 22.04 LTS (jammy), 24.04 LTS (noble) & 26.04 LTS (resolute raccoon) + * Ubuntu 22.04 LTS (jammy), 24.04 LTS (noble) & 26.04 LTS (resolute) * Debian 12 (bookworm) & 13 (trixie)" usage="Usage: curl -LsS https://raw.githubusercontent.com/supportpal/helpdesk-install/master/templates/linux/setup.sh | sudo bash -s -- [options] From bf83b069aa0e0bddeb528cdeff9440b69383f6aa Mon Sep 17 00:00:00 2001 From: Jay <602425+jshah4517@users.noreply.github.com> Date: Fri, 24 Apr 2026 10:42:14 +0100 Subject: [PATCH 3/5] install pwgen from package manager --- templates/linux/setup.sh | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/templates/linux/setup.sh b/templates/linux/setup.sh index 8ff08ba..8e2926b 100644 --- a/templates/linux/setup.sh +++ b/templates/linux/setup.sh @@ -196,19 +196,21 @@ systemd() { msg "info" "issued $1 of service: $2" } -# pwgen 2.08 is unavailable on debian 9 (stretch). -install_pwgen() -{ - # install dependencies - install curl gcc make - - curl -L -O https://gigenet.dl.sourceforge.net/project/pwgen/pwgen/2.08/pwgen-2.08.tar.gz - tar -xzf pwgen-2.08.tar.gz - cd pwgen-2.08 - ./configure - make && make install - cd .. - rm -rf pwgen-2.08.tar.gz pwgen-2.08 +install_pwgen() { + msg "info" "Installing pwgen..." + + if [[ $os_type == 'rhel' ]]; then + install pwgen + return + fi + + if [[ $os_type == 'debian' ]] || [[ $os_type == 'ubuntu' ]]; then + update + install pwgen + return + fi + + error "Unable to install pwgen on this OS." } setup() { From d7b7b8f8bcfc0ef5ac0b33c6475477b309630129 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 24 Apr 2026 09:52:33 +0000 Subject: [PATCH 4/5] fix(linux): install EPEL before pwgen on RHEL Agent-Logs-Url: https://github.com/supportpal/helpdesk-install/sessions/3a4e25f8-d385-4b2d-b3fc-0a9641333302 Co-authored-by: jshah4517 <602425+jshah4517@users.noreply.github.com> --- templates/linux/setup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/linux/setup.sh b/templates/linux/setup.sh index 8e2926b..7f7fac7 100644 --- a/templates/linux/setup.sh +++ b/templates/linux/setup.sh @@ -200,6 +200,8 @@ install_pwgen() { msg "info" "Installing pwgen..." if [[ $os_type == 'rhel' ]]; then + # pwgen is in EPEL, not the default repos + install_rpm "https://dl.fedoraproject.org/pub/epel/epel-release-latest-${os_version}.noarch.rpm" install pwgen return fi From 40c724e34e44a7c3f54da16cd463efaa8ab67072 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 24 Apr 2026 10:28:48 +0000 Subject: [PATCH 5/5] fix(linux): use /usr/bin/pwgen after package manager install Agent-Logs-Url: https://github.com/supportpal/helpdesk-install/sessions/27d05925-e6c7-4c0d-8b50-75417b07ad11 Co-authored-by: jshah4517 <602425+jshah4517@users.noreply.github.com> --- templates/linux/setup.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/templates/linux/setup.sh b/templates/linux/setup.sh index 7f7fac7..530258e 100644 --- a/templates/linux/setup.sh +++ b/templates/linux/setup.sh @@ -486,9 +486,7 @@ generate_password() { # strong passwords must be: # Length >= 8, numeric, mixed case, special characters and dictionary file while [[ $passwd = "${passwd,,}" ]] || [[ $passwd = "${passwd^^}" ]]; do - # sudo only provides access to /sbin:/bin:/usr/sbin:/usr/bin - # commands in /usr/local/bin cannot be found (https://unix.stackexchange.com/a/8652). - passwd=$(/usr/local/bin/pwgen -1 -s -y -n -c -v -r \`\'\"\$\|\\ 15) + passwd=$(/usr/bin/pwgen -1 -s -y -n -c -v -r \`\'\"\$\|\\ 15) done echo "${passwd}"