Skip to content

Commit

Permalink
Update support OS
Browse files Browse the repository at this point in the history
  • Loading branch information
Code-Egg committed May 28, 2024
1 parent 11ec912 commit b52becf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ See below for additional options and usage examples.
| `-A` |`--adminpassword [PASSWORD]`| To set the WebAdmin password for OpenLiteSpeed instead of using a random one.|
| |`--adminport [PORTNUMBER]`| To set the WebAdmin console port number instead of 7080.|
| `-E` |`--email [EMAIL]`| To set the administrator email.|
| |`--lsphp [VERSION]` | To set the LSPHP version, such as 82. We currently support versions '71 72 73 74 80 81 82'.|
| |`--lsphp [VERSION]` | To set the LSPHP version, such as 82. We currently support versions '71 72 73 74 80 81 82 83'.|
| |`--mariadbver [VERSION]` | To set MariaDB version, such as 10.9. We currently support versions '10.2 10.3 ...10.11'.|
| `-W` |`--wordpress`| To install WordPress. You will still need to complete the WordPress setup by browser|
| | `--wordpressplus [SITEDOMAIN]`| To install, set up, and configure WordPress, also LSCache will be enabled|
Expand Down
14 changes: 12 additions & 2 deletions ols1clk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,12 @@ function check_os
OSNAMEVER=UBUNTU22
OSVER=jammy
MARIADBCPUARCH="arch=amd64"
;;
;;
noble)
OSNAMEVER=UBUNTU24
OSVER=noble
MARIADBCPUARCH="arch=amd64"
;;
esac
elif [ -f /etc/debian_version ] ; then
OSNAME=debian
Expand All @@ -363,11 +368,16 @@ function check_os
OSVER=bullseye
MARIADBCPUARCH="arch=amd64,i386"
;;
bookworm)
OSNAMEVER=DEBIAN12
OSVER=bookworm
MARIADBCPUARCH="arch=amd64,i386"
;;
esac
fi

if [ "$OSNAMEVER" = '' ] ; then
echoR "Sorry, currently one click installation only supports Centos(7-9), Debian(10-11) and Ubuntu(18,20,22)."
echoR "Sorry, currently one click installation only supports Centos(7-9), Debian(10-12) and Ubuntu(18,20,22,24)."
echoR "You can download the source code and build from it."
echoR "The url of the source code is https://github.com/litespeedtech/openlitespeed/releases."
exit 1
Expand Down

0 comments on commit b52becf

Please sign in to comment.