thelastpickle / cassandra-medusa

Apache Cassandra Backup and Restore Tool
Apache License 2.0
266 stars 143 forks source link

Add bin/medusa-wrapper to package's installed scripts #738

Closed rzvoncek closed 7 months ago

rzvoncek commented 7 months ago

Fixes https://github.com/thelastpickle/cassandra-medusa/issues/735.

Tested on a blank EC2 Ubuntu 22.04 instance by running:

sudo apt-get update
sudo apt-get install -y python3-pip
pip install git+https://github.com/thelastpickle/cassandra-medusa.git@radovan/fix-wrapper
logout
(log back in)
$ medusa-wrapper
$

This installs Medusa to /home/ubuntu/.local/lib/python3.10/site-packages/medusa. The wrapper script is in there too now, because poetry does not have a way to bundle it in otherwies.

One other thing I spotted is that the medusa-example.ini file lands in /home/ubuntu/.local/lib/python3.10/site-packages/medusa-example.ini, which is perhaps not the nicest.

sonarcloud[bot] commented 7 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud