V
V
Vasya2018-06-24 11:52:45
linux
Vasya, 2018-06-24 11:52:45

Is git auto-deploy from apache user possible?

There are users:
apache
dev1
dev2
A post-recieve hook has been created in the server repository, which checkouts the master branch into the production folder.
We need apache to always be the owner of the files in the production folder.
The hook is now running on behalf of the user doing the push, which makes it the owner.
Question see title

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SagePtr, 2018-06-24
@haramba

Yes, through a webhook (if you work with the repository directly via SSH, and there is no way to use webhooks, then pull the URL you need inside the usual hook via wget or curl and you will get a self-made webhook, but without a payload)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question