DFabric / DPlatform-Shell

Deploy self-hosted apps easily: simple, bloat-free, independent installation
https://dfabric.github.io/DPlatform-Shell
MIT License
271 stars 44 forks source link

Git cloning fails because target directory isn't empty #34

Closed ghost closed 7 years ago

ghost commented 7 years ago

Cloning a repository into a new created /home/user path fails because .bash_logout .bashrc and .profile are being created with the user creation. Possible solutions:

Using OS: Ubuntu Server 16.10

ghost commented 7 years ago

My fault, was in a root terminal rather than using sudo for this installation.

j8r commented 7 years ago

This solve the issue to run as sudo?!

ghost commented 7 years ago

Well, at least other apps installed flawlessly, so that's probably the reason. I can test it again tomorrow, but it might not be a bad idea to clear the directory or create a subdirectory for the clone.

j8r commented 7 years ago

I will test also on my side. Be free to make a PR and fix like I've done with etherpad if you found this error again :). The -m option of useradd create a home directory from a skeleton, that have dotfiles. So I think a good solution it to remove this option, and add after the git clone command the app folder name in question.