Gozargah / Marzban

Unified GUI Censorship Resistant Solution Powered by Xray
https://t.me/gozargah_marzban
GNU Affero General Public License v3.0
3.73k stars 517 forks source link

Major bug: the entire opt directory is deleted when uninstalling #325

Closed WoChen5770 closed 1 year ago

WoChen5770 commented 1 year ago

Describe the bug INSTALL_DIR="/opt" uninstall_marzban() { if [ -d "$INSTALL_DIR" ]; then colorized_echo yellow "Removing directory: $INSTALL_DIR" rm -r "$INSTALL_DIR" fi }

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Machine details (please complete the following information):

Additional context Add any other context about the problem here.

SaintShit commented 1 year ago

That's a BIG BIG problem, thanks for the report!