Skip to content

Conversation

ndigati
Copy link
Contributor

@ndigati ndigati commented Apr 11, 2016

Fixes the issue where sometimes the add-users script would not work because it would error out and exit before chown or chmod all the files it was supposed to.

One case I found for this is when a users home directory had no files the xargs command would fail.

Changes that happened:

  1. Clean up the Dockerfile a little bit, and update README
  2. Fix find and xargs commands in add-users script
    • add -r to xargs to not process empty arguments passed to it (when no files in users home directory)
    • add -mindepth option to find to only look at files/folders in the users home directory
    • fix typo in Directory permissions variable
  3. Added changes discussed in comments in 969e2f5
  4. Added log files for services in supervisor

ndigati added 8 commits March 22, 2016 14:04
- Updated Dockerfile to combine some instructions and hopefully reduce
  number of layers in the image.
- Updated add_users script to try and debug why some files permissions
  are not updating.
- Added pubkey authentication to sshd_config for sftp
- Updated supervisord conf to have logging for various services.
@ndigati ndigati self-assigned this Apr 11, 2016
ndigati added 10 commits April 18, 2016 13:56
- Since these files should not be updated through S3 their permissions
  should always be the same so just create them for each user at startup
  instead of checking/update constantly through the 'add_users' script.
- Update ownership of .ssh folder and authorized_keys files. They
  weren't owned correctly so ssh wouldn't be able to read them. Both now
  owned by the sftp user
- Updated supervisor config to allow stderr logging for ssh process
- One user was regularly experiencing timeouts when transferring data
  and was fixed by setting the timeout (manually before) to 15 minutes.
  This should probably just be set for everyone just so it's consistent
  and doesn't hurt to have it either.
@diogopms
Copy link

diogopms commented Nov 6, 2017

Hey @ndigati, can we merge this PR?
Thanks for doing this docker image 👍

This is the perfect use case for my ip camera using a s3 bucket 🙏

./autogen.sh && \
./configure && \
make && \
sudo make install
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sudo it's not required for make install. What do you think?

@diogopms diogopms mentioned this pull request Nov 6, 2017
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

Successfully merging this pull request may close these issues.

2 participants