Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update marzban.sh #29

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Update marzban.sh #29

wants to merge 4 commits into from

Conversation

DigneZzZ
Copy link
Contributor

@DigneZzZ DigneZzZ commented Oct 14, 2024

I'm significantly improved the original Marzban installation script.

Key Changes:

  1. Added MySQL Support:

    • You can now install Marzban using MySQL by specifying --database mysql during installation.
    • The script generates a docker-compose.yml with MySQL configuration and updates the .env file accordingly.
  2. Enhanced Xray-core Version Selection Interface:

    • The get_xray_core function now features a user-friendly, colored menu.
    • Select from available Xray-core versions or manually enter a specific version.
    • Improved validation ensures only valid versions are accepted.
  3. Suppressed Logs During Installation and Execution:

    • To improve readability, unnecessary logs are now hidden during installation and command execution.
    • Essential success and error messages are still displayed for clarity.

Brief Usage Instructions:

  • Install Marzban with MySQL:

    sudo bash -c "$(curl -sL https://github.com/Gozargah/Marzban-scripts/raw/master/marzban.sh)" @ install --database mysql
  • Install Marzban with MariaDB:

    sudo bash -c "$(curl -sL https://github.com/Gozargah/Marzban-scripts/raw/master/marzban.sh)" @ install --database mariadb
  • Install Marzban with MariaDB and Dev branch:

    sudo bash -c "$(curl -sL https://github.com/Gozargah/Marzban-scripts/raw/master/marzban.sh)" @ install --database mariadb --dev
  • **Install Marzban with MariaDB and Manual version **:

    sudo bash -c "$(curl -sL https://github.com/Gozargah/Marzban-scripts/raw/master/marzban.sh)" @ install --database mariadb --version v0.5.2
  • Update or Change Xray-core Version:

    sudo marzban core-update

1. Silent core-update (like marzban-node core-update)
2. Flags: `--database mysql/mariadb` for installation without SQLite
3. Increase flag: `--dev` (old version without `--`
4. Increase flag: `--version v0.5.2`  (old version without `--version`)
5. You can install and DEV and MYSQL/MariaDB (that is example): `@ install --dev --database mysql`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant