Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/linux-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
- quay.io/centos/centos:stream10
- ubuntu:22.04
- ubuntu:24.04
- debian:11
- debian:12
- debian:13

steps:
- uses: actions/checkout@v5
Expand Down
17 changes: 5 additions & 12 deletions templates/linux/setup.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
#!/bin/bash
set -eu -o pipefail

version="0.6.0"

supported="The following Linux OSs are supported, on x86_64 only:
* RHEL 9, 10
* Ubuntu 22.04 LTS (jammy) & 24.04 LTS (noble)
* Debian 11 (bullseye) & 12 (bookworm)"
* 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]

Expand All @@ -15,8 +13,6 @@ $supported
Options:
--help Display this help and exit.

--version Output the script version and exit.

--overwrite Permanently delete existing configurations, databases, files.

--docker Use for testing purposes only; replaces systemd to allow testing in docker containers.
Expand Down Expand Up @@ -44,10 +40,6 @@ socket_path='/run/supportpal.sock'

while [[ "$#" -gt 0 ]]; do
case $1 in
--version)
echo "$version"
exit 0
;;
--help)
echo "$usage"
exit 0
Expand Down Expand Up @@ -92,9 +84,10 @@ identify_os() {
debian_version=$(</etc/debian_version)
case $debian_version in
9*) error 'Debian version 9 (stretch) has reached End of Life and is no longer supported.' ;;
10*) os_version=buster ;;
11*) os_version=bullseye ;;
10*) error 'Debian version 10 (buster) has reached End of Life and is no longer supported.' ;;
11*) error 'Debian version 11 (bullseye) has reached End of Life and is no longer supported.' ;;
12*) os_version=bookworm ;;
13*) os_version=trixie ;;
*) error "Detected Debian but version ($debian_version) is not supported." "$supported" ;;
esac
;;
Expand Down Expand Up @@ -519,7 +512,7 @@ install_mysql() {
debconf-set-selections <<< "mysql-server mysql-server/root_password password ${root_password}"
debconf-set-selections <<< "mysql-server mysql-server/root_password_again password ${root_password}"

wget -O mysql-apt-config.deb https://dev.mysql.com/get/mysql-apt-config_0.8.35-1_all.deb
wget -O mysql-apt-config.deb https://dev.mysql.com/get/mysql-apt-config_0.8.36-1_all.deb
dpkg -i mysql-apt-config.deb && apt-get update
rm mysql-apt-config.deb
fi
Expand Down
Loading