Skip to content

Commit 64f134d

Browse files
authored
Merge pull request #1687 from master3395/v2.5.5-dev
V2.5.5 dev
2 parents a56060d + bd16cb6 commit 64f134d

File tree

3 files changed

+47
-9
lines changed

3 files changed

+47
-9
lines changed

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
**Web Hosting Control Panel powered by OpenLiteSpeed**
88
Fast • Secure • Scalable — Simplify hosting management with style.
99

10-
**Version**: 2.5.5-dev • **Updated**: November 15, 2025
10+
**Version**: 2.5.5-dev • **Updated**: January 15, 2026
1111

1212
[![GitHub](https://img.shields.io/badge/GitHub-Repo-000?style=flat-square\&logo=github)](https://github.com/usmannasir/cyberpanel)
1313
[![Docs](https://img.shields.io/badge/Docs-Read-green?style=flat-square\&logo=gitbook)](https://cyberpanel.net/KnowledgeBase/)
@@ -112,6 +112,30 @@ sh <(curl -s https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preU
112112

113113
---
114114

115+
## Upgrade to v2.5.5-dev (non-interactive)
116+
117+
Upgrade to v2.5.5-dev without branch or MariaDB prompts:
118+
119+
```bash
120+
# Upgrade to v2.5.5-dev without prompts
121+
sh <(curl -s https://raw.githubusercontent.com/master3395/cyberpanel/v2.5.5-dev/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/master3395/cyberpanel/v2.5.5-dev/preUpgrade.sh) -b v2.5.5-dev
122+
123+
# With MariaDB 10.11 (non-interactive)
124+
sh <(curl -s https://raw.githubusercontent.com/master3395/cyberpanel/v2.5.5-dev/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/master3395/cyberpanel/v2.5.5-dev/preUpgrade.sh) -b v2.5.5-dev --mariadb
125+
126+
# Or use --mariadb-version for other versions
127+
sh <(curl -s https://raw.githubusercontent.com/master3395/cyberpanel/v2.5.5-dev/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/master3395/cyberpanel/v2.5.5-dev/preUpgrade.sh) -b v2.5.5-dev --mariadb-version 10.11
128+
sh <(curl -s https://raw.githubusercontent.com/master3395/cyberpanel/v2.5.5-dev/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/master3395/cyberpanel/v2.5.5-dev/preUpgrade.sh) -b v2.5.5-dev --mariadb-version 11.8
129+
```
130+
131+
**Full non-interactive command** (v2.5.5-dev + MariaDB 10.11):
132+
133+
```bash
134+
sh <(curl -s https://raw.githubusercontent.com/master3395/cyberpanel/v2.5.5-dev/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/master3395/cyberpanel/v2.5.5-dev/preUpgrade.sh) -b v2.5.5-dev --mariadb
135+
```
136+
137+
---
138+
115139
## Troubleshooting (common)
116140

117141
**Command not found** — install curl/wget/git/python3

cyberpanel_upgrade.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,11 @@ if [[ "$*" = *"--no-system-update"* ]]; then
367367
echo -e "\nUsing --no-system-update: skipping full system package update.\n"
368368
fi
369369
# Parse --mariadb-version 10.11|11.8|12.1 (default 11.8)
370-
if [[ "$*" = *"--mariadb-version "* ]]; then
370+
# --mariadb is shorthand for --mariadb-version 10.11 (MariaDB default, matches 10.11.x-MariaDB Server)
371+
if [[ "$*" = *"--mariadb"* ]] && [[ "$*" != *"--mariadb-version "* ]]; then
372+
MARIADB_VER="10.11"
373+
echo -e "\nUsing --mariadb: MariaDB 10.11 selected (non-interactive).\n"
374+
elif [[ "$*" = *"--mariadb-version "* ]]; then
371375
MARIADB_VER=$(echo "$*" | sed -n 's/.*--mariadb-version \([^ ]*\).*/\1/p' | head -1)
372376
MARIADB_VER="${MARIADB_VER:-11.8}"
373377
fi
@@ -1768,8 +1772,8 @@ if [[ "$*" != *"--branch "* ]] && [[ "$*" != *"-b "* ]] ; then
17681772
Pre_Upgrade_Branch_Input
17691773
fi
17701774

1771-
# Prompt for MariaDB version if not set via --mariadb-version (default 11.8). Options: 10.11, 11.8, 12.1.
1772-
if [[ "$*" != *"--mariadb-version "* ]]; then
1775+
# Prompt for MariaDB version if not set via --mariadb or --mariadb-version (default 11.8). Options: 10.11, 11.8, 12.1.
1776+
if [[ "$*" != *"--mariadb"* ]] && [[ "$*" != *"--mariadb-version "* ]]; then
17731777
echo -e "\nMariaDB version: \e[31m10.11\e[39m, \e[31m11.8\e[39m LTS (default) or \e[31m12.1\e[39m. You can switch later by re-running with --mariadb-version 10.11, 11.8 or 12.1."
17741778
echo -e "Press Enter for 11.8 LTS, or type \e[31m10.11\e[39m or \e[31m12.1\e[39m (5 sec timeout): "
17751779
read -r -t 5 Tmp_MariaDB_Ver || true

preUpgrade.sh

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,19 @@
22

33
# Check for branch parameter
44
BRANCH_NAME=""
5-
if [ "$1" = "-b" ] || [ "$1" = "--branch" ]; then
6-
BRANCH_NAME="$2"
7-
shift 2
8-
fi
5+
EXTRA_ARGS=""
6+
while [ $# -gt 0 ]; do
7+
case "$1" in
8+
-b|--branch)
9+
BRANCH_NAME="$2"
10+
shift 2
11+
;;
12+
*)
13+
EXTRA_ARGS="$EXTRA_ARGS $1"
14+
shift
15+
;;
16+
esac
17+
done
918

1019
# If no branch specified, get stable version
1120
if [ -z "$BRANCH_NAME" ]; then
@@ -17,4 +26,5 @@ echo "Upgrading CyberPanel from branch: $BRANCH_NAME"
1726
rm -f /usr/local/cyberpanel_upgrade.sh
1827
wget -O /usr/local/cyberpanel_upgrade.sh https://raw.githubusercontent.com/master3395/cyberpanel/$BRANCH_NAME/cyberpanel_upgrade.sh 2>/dev/null
1928
chmod 700 /usr/local/cyberpanel_upgrade.sh
20-
/usr/local/cyberpanel_upgrade.sh $@
29+
# Pass -b so upgrade script skips branch prompt and uses our branch
30+
/usr/local/cyberpanel_upgrade.sh -b "$BRANCH_NAME" $EXTRA_ARGS

0 commit comments

Comments
 (0)