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

Deployment #1

Closed
noraj opened this issue Dec 4, 2021 · 4 comments
Closed

Deployment #1

noraj opened this issue Dec 4, 2021 · 4 comments

Comments

@noraj
Copy link
Contributor

noraj commented Dec 4, 2021

How to deploy this repository for cook ?

If cook is deployed under /usr/share/cook does having it deployed under /usr/share/cook/cook-ingredients will works or does it need to be under /usr/share/cook directly?

On cook repository there are references to this but it's not explain how to deploy it for cook to take it into account.

image

update

I see here that at the first run of cook it will be downloaded and deployed under $home/cook-ingredients https://github.com/giteshnxtlvl/cook#-installation

I have to issues with that:

  1. I doesn't do it, $home/cook-ingredients wasn't created on my system, update seems BA is using cook 1.6 and not 2.0 for now (see cook build BlackArch/blackarch#3278) the download of config file and conf file names were changed in 2.0
  2. rather than $home/cook-ingredients it should be deployed under ~/.config/cook-ingredients ($XDG_CONFIG_HOME/cook-ingredients) same as for Should we create separate repo for cook's ingredients & recipes? cook#13 (reply in thread)
@glitchedgitz
Copy link
Owner

Actually, nuclei templates are also in $home directory, so I thought it might be good for users to find it right next to it if they want to modify it.

@glitchedgitz
Copy link
Owner

Also, the location for the config folder for windows is %appdata% and users have to dig too deep to modify it.
Chk here https://pkg.go.dev/os#UserConfigDir

@noraj
Copy link
Contributor Author

noraj commented Dec 7, 2021

Actually, nuclei templates are also in $home directory, so I thought it might be good for users to find it right next to it if they want to modify it.

XDG Base Directory Specification is a standard specification made by freedesktop.org to unify base directory on Unix desktops and enhance interoperability.

nuclei may not implement the standard too.

Also, the location for the config folder for windows is %appdata% and users have to dig too deep to modify it.

Yes go is following the XDG standard:

On Unix systems, it returns $XDG_CONFIG_HOME as specified by https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html if non-empty, else $HOME/.config. On Darwin, it returns $HOME/Library/Application Support. On Windows, it returns %AppData%. On Plan 9, it returns $home/lib.

If any software would deploy a folder in our $home it would be very messy.

@glitchedgitz
Copy link
Owner

I know this, but I think it would be better to have it in $home in terms of user experience.
Even for every tool that needs high customization from the user-end, its config files should be easily accessible.
Also, users can change the directory if they want.

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