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

Shared folders in bash #32

Closed
spotman opened this issue Jul 26, 2014 · 5 comments
Closed

Shared folders in bash #32

spotman opened this issue Jul 26, 2014 · 5 comments
Labels

Comments

@spotman
Copy link
Contributor

spotman commented Jul 26, 2014

Hi there!

First of all, thanks for this awesome toolkit! It really rocks :)

My production server has bash console. There is an issue with deleting shared folders in codebase. Somewhy bash does not expand "~" in the following command:

cd ~/webroot/production && if [ -d "~/webroot/production/releases/2014072705721/core/modules/error/media" ]; then rm -rf ~/webroot/production/releases/2014072705721/core/modules/error/media; fi

and does not delete the directory (so symlink does not work).
After googling I've found this: http://stackoverflow.com/questions/1685894/home-directory-expansion-within-an-argument

So I've changed the expression to this

if [ -d $(echo ~/webroot/production/releases/2014072705721/core/modules/error/media) ]; then echo 'exists'; fi

and it worked as expected.

@antonmedv
Copy link
Member

Oww. Nice. that os do you use?

@spotman
Copy link
Contributor Author

spotman commented Jul 28, 2014

This is default Jelastic apache2.2 web-server.
uname -a says this:

Linux apache2.2.2.15-29.45211.afs-prod-script 2.6.32-042stab090.5 #1 SMP Sat Jun 21 00:15:09 MSK 2014 x86_64 x86_64 x86_64 GNU/Linux

@antonmedv
Copy link
Member

So is it bug in Jelastic apache2.2 web-server or shoud i update deployer? If yes, can you create pull request? 💜

@spotman
Copy link
Contributor Author

spotman commented Jul 28, 2014

No, it is not Jelastic bug, it is a bash console issue.

Yes, I can create PR.

@spotman
Copy link
Contributor Author

spotman commented Jul 29, 2014

May you rebuild this tool with my changes so they would be available through Composer?
Thanks.

@antonmedv antonmedv added the bug label Jul 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants