[Ghost] Mysql version unable to be evaluated #1906

Closed
opened 2025-11-20 05:19:35 -05:00 by saavagebueno · 2 comments
Owner

Originally created by @akaSorin on GitHub (Sep 17, 2025).

Originally assigned to: @MickLesk on GitHub.

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

Ghost v1.28.3 LXC

📂 What was the exact command used to execute the script?

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/ghost.sh)"

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

📈 Which Proxmox version are you on?

pve-manager/8.4.9/649acf70aab54798 (running kernel: 6.8.12-13-pve)

📝 Provide a clear and concise description of the issue.

when running update or the full script line in the LXC, I get the following error:

[ERROR] in line 1325: exit code 0: while executing command CURRENT_VERSION="$(mysql --version | grep -oP 'Distrib\s+\K[0-9]+\.[0-9]+')"

Since the current version of MySql doesn't contain "Distrib" we end up getting an empty version as a result of this command with the Distrib string

root@ghost:~# mysql --version | grep -oP 'Distrib\s+\K[0-9]+\.[0-9]+'

root@ghost:~# mysql --version | grep -oP '\s+\K[0-9]+\.[0-9]+'
8.0

🔄 Steps to reproduce the issue.

  • Have an outdated version of ghost
  • run update inside the container
  • get the error [ERROR] in line 1325: exit code 0 [...]
  • try running bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/ghost.sh)"
  • get the same error

Paste the full error output (if available).

[ERROR] in line 1325: exit code 0: while executing command CURRENT_VERSION="$(mysql --version | grep -oP 'Distrib\s+\K[0-9]+.[0-9]+')"

🖼️ Additional context (optional).

No response

Originally created by @akaSorin on GitHub (Sep 17, 2025). Originally assigned to: @MickLesk on GitHub. ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Ghost v1.28.3 LXC ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/ghost.sh)" ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 📈 Which Proxmox version are you on? pve-manager/8.4.9/649acf70aab54798 (running kernel: 6.8.12-13-pve) ### 📝 Provide a clear and concise description of the issue. when running `update` or the full script line in the LXC, I get the following error: ``` [ERROR] in line 1325: exit code 0: while executing command CURRENT_VERSION="$(mysql --version | grep -oP 'Distrib\s+\K[0-9]+\.[0-9]+')" ``` Since the current version of MySql doesn't contain "Distrib" we end up getting an empty version as a result of this command with the `Distrib` string ``` root@ghost:~# mysql --version | grep -oP 'Distrib\s+\K[0-9]+\.[0-9]+' root@ghost:~# mysql --version | grep -oP '\s+\K[0-9]+\.[0-9]+' 8.0 ``` ### 🔄 Steps to reproduce the issue. - Have an outdated version of ghost - run `update` inside the container - get the error `[ERROR] in line 1325: exit code 0 [...]` - try running `bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/ghost.sh)"` - get the same error ### ❌ Paste the full error output (if available). [ERROR] in line 1325: exit code 0: while executing command CURRENT_VERSION="$(mysql --version | grep -oP 'Distrib\s+\K[0-9]+\.[0-9]+')" ### 🖼️ Additional context (optional). _No response_
saavagebueno added the bug label 2025-11-20 05:19:35 -05:00
Author
Owner

@tremor021 commented on GitHub (Sep 20, 2025):

@MickLesk i think you refactored this?

@tremor021 commented on GitHub (Sep 20, 2025): @MickLesk i think you refactored this?
Author
Owner

@MickLesk commented on GitHub (Sep 20, 2025):

only for mariadb. shit mysql ^^

https://github.com/community-scripts/ProxmoxVE/pull/7774

@MickLesk commented on GitHub (Sep 20, 2025): only for mariadb. shit mysql ^^ https://github.com/community-scripts/ProxmoxVE/pull/7774
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#1906