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

chowning not exists $symlink #199

Closed
robi50 opened this issue Mar 2, 2015 · 2 comments
Closed

chowning not exists $symlink #199

robi50 opened this issue Mar 2, 2015 · 2 comments
Labels

Comments

@robi50
Copy link

robi50 commented Mar 2, 2015

Release task fails if "current release" symbolic link directory not exists since it will try to chown not exists directory. Command fails with "No such file or directory"

deployment:
  user: robin
  from: ./
  to: /home/robin/mage-test
releases:
  enabled: true
  max: 10
  symlink: current
  directory: releases

2015-03-02 23:21:13 -- ---- Executing: $ ssh -p 22 -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no robin@{IP_ADDRESS} "sh -c "cd /home/robin/mage-test && chown -h robin:robin current && chown -R robin:robin releases/20150302232106 && chown robin:robin releases""
2015-03-02 23:21:14 -- chown: cannot access 'current': No such file or directory
2015-03-02 23:21:14 -- ---------------------------------
2015-03-02 23:21:14 -- FAIL
2015-03-02 23:21:14 -- Finished the Releasing
2015-03-02 23:21:14 -- No Post-Deployment tasks defined.
2015-03-02 23:21:14 -- Time for deployment: 5 seconds.
2015-03-02 23:21:14 -- Average time per host: 5 seconds.
2015-03-02 23:21:14 -- Total time: 8 seconds.
2015-03-02 23:21:14 -- Finished Magallanes

robi50 added a commit to robi50/Magallanes that referenced this issue Mar 2, 2015
`chown` symlink directory only if exists
@spongeben
Copy link

There's a PR about this bug #195 (first part), but it needs feedback if you can have a look ;)

@eps90
Copy link
Collaborator

eps90 commented Mar 7, 2015

I'm closing this issue (actually fixed in #195).

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

4 participants