42 Commits

Author SHA1 Message Date
Dr. Ulrich Thomas Gabor
43953628cf
Fix for #2850 (#2852): whoami fails on some hosters 2022-01-10 19:49:04 +01:00
Anton Medvedev
a2b3da8c32 Add *s 2021-11-08 22:59:39 +01:00
Anton Medvedev
dc4a75ce3d Don't use {{remote_user}} in writable 2021-10-27 00:40:18 +02:00
Anton Medvedev
09328c3ecf No caddy in http_{user,group} detection 2021-10-11 22:10:05 +02:00
Anton Medvedev
7de69d68d0 Swap if&else with sudo 2021-10-08 12:43:15 +02:00
Anton Medvedev
1fa138efff Update writable.php 2021-10-08 12:39:12 +02:00
Anton Medvedev
8ebcbea5b6
Back to acl 2021-09-28 08:16:07 +02:00
Anton Medvedev
8380f85105
Update writable.php 2021-09-28 08:01:51 +02:00
Anton Medvedev
d4a4fdcbdc Fix e2e 2021-09-24 16:37:47 +02:00
Anton Medvedev
6b73b44a2f Fix e2e 2021-09-24 16:34:10 +02:00
Anton Medvedev
70271ba682 Fixes 2021-09-24 16:30:29 +02:00
Anton Medvedev
69d06d60d4 Fix writable.php 2021-09-24 16:26:45 +02:00
Anton Medvedev
ce427a244c Use chgrp as default mode in deploy:writable 2021-09-24 15:55:17 +02:00
Anton Medvedev
85bf0d1c92 Improve deploy:writable task
Also, new default mode is chown.
2021-09-24 15:39:25 +02:00
Anton Medvedev
b724073157 Fix code style 2021-09-24 10:58:53 +02:00
memen45
fd1be9baa6
Update writable.php (#2648)
Silence the errors from chgrp. Will not interrupt deploy process in case the group ownership is already correct, but user is different.
2021-09-11 17:40:01 +02:00
Loris Leiva
a313326911
Fix ACL error message (#2501)
* Fix ACL error message

* Update CHANGELOG.md
2021-04-11 16:45:55 +02:00
Pascal Hubrecht
6d357e94b6
Safety to avoid modifying files outside deploy_path (#2284)
* Safety to avoid modifying files outside deploy_path

Using writable_dirs with writable_use_sudo can lead to a disaster on a server (example using /var/log instead of var/log as writable dir).

* Update writable.php

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update writable.php

* trailing slash

* docgen

* throw exception if absolute path in writable dirs
2020-12-12 20:21:48 +01:00
Anton Medvedev
e6b491b4ad Fix phpstan error 2020-11-15 23:52:48 +01:00
Anton Medvedev
dafad94e8e Better error message for ACL 2020-10-08 00:41:18 +02:00
Anton Medvedev
744c56fc09 Refactor deploy:writable 2020-10-07 23:55:41 +02:00
Anton Medvedev
47a193f9af
Add docgen 2020-10-02 01:11:13 +03:00
Anton Medvedev
29a643b623 v7 2020-05-16 18:02:17 +03:00
Andrey Helldar
2ef394e125 Fixed bug "Can't detect http user name." (#1876)
* Fixed bug "Can't detect http user name."

See:
* https://github.com/deployphp/deployer/issues/1778#issuecomment-507228046
* #1805

* Update writable.php
2019-07-01 15:37:15 +03:00
Jānis Gruzis
10ba0fae78 Avoid zombie processes in http user resolution. (#1805)
* Avoid zombie processes in http user resolution.

* Changelog improved.
2019-05-16 14:51:00 +07:00
Ján Regeš
c37f5998fc Added writable_recursive option (default: true) used in all writable modes (chmod, chown, chgrp, acl) (#1823)
* Added `writable_recursive` option (default: true) used in all writable modes (chmod, chown, chgrp, acl) (#1822)

* Update CHANGELOG.md
2019-03-31 20:11:54 +07:00
Pablo Escobar
8c3bcc3c8c issues 1788 (#1790)
Fix http_user detection
2019-01-11 18:54:52 +07:00
Marko Kruljac
ab290fb04f http_user detection command could return wrong user (#1779)
* Add test before http_user detection

Script will no attempt to longer detect http_user if there are more than 1 possible candidates.

* Update CHANGELOG.md

Updated for issue #1778

* Update CHANGELOG.md

Added missing link to issue

* Change detection strategy from bash test to php

This reduces the number of ssh calls to the remote host.
2019-01-02 19:44:33 +07:00
Filippo Tessarotto
68d2cf32e9 [deploy:writable] chgrp doesn't need http_user (#1660)
* deploy:writable: chgrp doesn't need http_user

* Update CHANGELOG.md
2018-08-27 13:33:45 +07:00
Ryan Park
96f5edaebe moving the name column to the last position to show full name (#1580)
* moving the name column to the last position to show full name

- bug fix: #1579

* add changelog

* update changelog.md

* update CHANGELOG.md

* modify command to find http user

* modify command to find http user
2018-04-18 11:22:03 +07:00
Martin Supiot
006e0b16f3 fix typo (#1585) 2018-04-10 14:49:32 +07:00
pascal08
056db8a1b1 Improve readability of command for finding web server user (#1558)
* Improve readability of command for finding web server user

* Update CHANGELOG.md

* Add reference link to CHANGELOG.md
2018-02-22 20:56:14 +07:00
Anton Medvedev
d4205d0dcc Update writable.php 2017-08-12 18:50:41 +03:00
Anton Medvedev
80e68eced7 Merge branch 'master' into deploy_writable_tty 2017-08-12 18:49:52 +03:00
Anton Medvedev
53b0261c1b Refactor run and runLocally return type 2017-08-12 18:06:21 +03:00
grohiro
3c0bfc2429 Fix indentation 2017-07-01 11:09:13 +09:00
grohiro
4b72952255 Enable to allocate a TTY for deploy:writable task
It allows to use sudo with password when running `deploy:writable` task.
Added a variable {{writable_request_tty}} (boolean)
2017-07-01 01:08:19 +09:00
Maksim Kuznetsov
a4900c94c9 Create writable_dirs if they don’t exist 2017-02-24 02:27:50 +03:00
Jesper Skytte Marcussen
69de3865cd Option for non-recursive chmod in deploy:writable
This commit enables the user to disable the recursive flag when setting writable dirs with 'chmod', by setting 'writable_chmod_recursive' to false. It is per default set to true.
2017-01-24 08:08:58 +01:00
Jan Zdunek
d786b61489 Calling setfacl with option -L to follow symbolic links created for shared directories. 2017-01-14 14:53:58 +01:00
Carl Alexander
c6b560ff6c Fix bug with $httpGroup guard clause 2017-01-07 08:50:15 -05:00
Anton Medvedev
c6dc030b30 Refactor common.php 2016-11-19 15:13:32 +07:00