securitybunker / databunker

Secure SDK/vault for personal records/PII built to comply with GDPR
https://databunker.org/
MIT License
1.23k stars 72 forks source link

commenting out the permission so that it is used in docker compose #15

Closed l-r-sowmya closed 9 months ago

l-r-sowmya commented 9 months ago
  1. If permission 400 is given then the files are not being moved by docker
CLAassistant commented 9 months ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Sowmya LR seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

l-r-sowmya commented 9 months ago

@stremovsky I have made the changes for this issue. But unfortunately only new commits after this change will accept these changes. I dont know what to do now

stremovsky commented 9 months ago

I just tested the code on my mac laptop ( I updated Docker desktop).

This code works for me:

chmod 400 .env/pg-*
os=$(uname)
if [ "$os" != "Darwin" ]; then
  echo "sudo chown 999:0 .env/pg-*"
  sudo chown 999:0 .env/pg-*
fi

The chmod 400 .env/pg-* line is executed both for Ubuntu and Mac and everything works for me.

l-r-sowmya commented 9 months ago

not able to reproduce it again.