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

plugz init in a project #2

Open
1 of 6 tasks
danimesq opened this issue Nov 10, 2021 · 0 comments
Open
1 of 6 tasks

plugz init in a project #2

danimesq opened this issue Nov 10, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@danimesq
Copy link
Member

danimesq commented Nov 10, 2021

  • Check if project contains a non-empty recipe.json file, then ok
if [ -s recipe.json ]
   then
      # The file is not-empty.
      # proceed
   else
      # The file is empty.
      echo "recipe.json is empty! Please fill it properly before initiating. Documentation, soon"
fi
  • Prompt to input a unique project name/id; check if it doesn't already exist (jq -r '.projects[].name | index( "" )' recipe.json | tail -n 1), then ok

  • Add this project to Plugz list of projects and the dependencies+versions

  • Watch this project's folder when its moved: sudo auditctl -a always,exit -F arch=b64 -S rename,rmdir,unlink,unlinkat,renameat -F dir=/path/to/folder/to/monitor -F key=PLUGZ_PROJNAME

  • mkdir include

  • 01 ignore include

ausearch -k PLUGZ_PROJNAME

sudo echo "-a always,exit -F arch=b64 -S rename,rmdir,unlink,unlinkat,renameat -F dir=/path/to/folder/to/monitor -F key=PLUGZ_PROJNAME" >> /etc/audit/audit.rules https://serverfault.com/questions/1072998/how-to-monitor-when-a-file-folder-is-moved-and-where-it-moved-to?newreg=876bb061e82f40dd8f2c050639a05da5

@danimesq danimesq added the enhancement New feature or request label Nov 10, 2021
@danimesq danimesq self-assigned this Nov 10, 2021
@danimesq danimesq pinned this issue Nov 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant