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

Having nettacker in the PATH #526

Open
tristanlatr opened this issue Dec 21, 2021 · 4 comments
Open

Having nettacker in the PATH #526

tristanlatr opened this issue Dec 21, 2021 · 4 comments

Comments

@tristanlatr
Copy link
Contributor

Right now the issue is that the installation directory is totally arbitrary and the install instructions doesn't prescribe to create a symlink in a directory that is accessible in the PATH.

I'de propose to add the required steps in the installation docs such that Nettacker would be installed in /opt/Nettacker/ and a symlink /usr/local/bin/nettacker is created.

So the "Install Requirements" section would read as follows

git clone https://github.com/OWASP/Nettacker.git /opt/
cd /opt/Nettacker/
apt-get update
apt-get install -y < requirements-apt-get.txt
pip3 install --upgrade pip
pip3 install -r requirements.txt
pip3 install -r requirements-dev.txt
ln -s /opt/Nettacker/nettacker.py /usr/local/bin/nettacker

With the note: This will install Nettacker under /opt/Nettacker/ and create a symlink in /usr/local/bin/. Feel free to adjust this to your needs.

#525 needs to merged for that to work.

@dhirensr
Copy link
Collaborator

if the user wants it they can cd and install it right? why do you think we need to mention change directory command explicitly?

@tristanlatr
Copy link
Contributor Author

It’s good to propose a standard place, Such that we can say: “the regular installation directory for nettacker is /opt/nettacker”. And a symlink in the path is generally created. Now, there is absolutely no rules about it. It’s really just about having a symlink in the PATH…

@tristanlatr
Copy link
Contributor Author

This could also be done by packaging nettacker with a setup.py.

@tristanlatr
Copy link
Contributor Author

@dhirensr do you think it would be possible to package nettacker such that we can have an entrypoint in the PATH ?

Thanks

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

No branches or pull requests

2 participants