Questions tagged [hook]
43 questions
2
votes
1 answer
How do I get Postfix to run a script every time there is a outgoing delivery error?
I would like postfix to run a external php script (a hook) every time there is a outgoing delivery error.
For example, my webserver sends out emails and sometimes the recipients mailbox is full or nonexistent:
(host mx2.seznam.cz[77.75.76.32] said:…

Arkadiy Bolotov
- 135
- 7
2
votes
1 answer
Implementing and testing a Subversion hook
Background
I'm trying to implement a number of commit hooks for Subversion. I have done a lot of research to try and get a simple test hook to work, however I have had no luck.
For reference I have looked through, followed and then tried to…

Dodzi Dzakuma
- 169
- 2
- 8
2
votes
2 answers
How can I run a python script when a new user is created in Active Directory?
For some background information: we're a Windows environment using server 2008 with AD for desktop auth. We are an online retail business; our online presence and our intranet are *nix based.
When we have a new user, I want to be able to simply…
user56051
2
votes
3 answers
Problem with Email Notifications in VisualSVN Server
I have a dedicated server running windows 2003 server and Visual SVN Server 2.0.8.
I'm trying to configure it to send email notifications on commit. So I found this article on Visual SVN site.
It says I have to edit the Post-commit hook and set it…

empz
- 247
- 1
- 6
- 15
2
votes
1 answer
Automatically add text on CVS Commit?
I was curious if there was a way to add a hook or something into CVS so that when you commit a text file or into CVS, it will add a certain string at the end of the file?
For example, say something like: "Committed by Joe Schmoe on 03/11/2010"

Ascalonian
- 163
- 1
- 1
- 6
2
votes
1 answer
svn hook script - export just branch checked in
I've set up a repository to configure my websites, the repository is /subversion/web and at the moment I have just one website controlled in /subversion/web/mywebsite
I've set up a post-commit hook script that exports the site into a web directory…

MalphasWats
- 108
- 2
- 13
1
vote
1 answer
How to add multiple post-receive hooks to a git repository?
I would like to add multiple post-receive hook scripts to a git repository on my own server. For example: triggering CI, and posting to slack.
How can I add more than one script?

Epskampie
- 231
- 2
- 6
1
vote
1 answer
Git hook post-merge
I have a post-receive hook that create a file after a push on master branch
branch_name=$(git rev-parse --symbolic --abbrev-ref $refname)
if [ "master" == "$branch_name" ]; then
touch OK_push.txt
fi
Is it possible to do the same thing after a…

xergiopd
- 111
- 4
1
vote
1 answer
Build meteor app in custom GitLab hook
How do I build a meteor app (do 'meteor build .') in a GitLab custom hook? The custom hook is run by the user git who does not seem to have any possibility to run meteor build.
Therefore I want to change the user in the script to someone who is…

user1255102
- 171
- 1
- 1
- 4
1
vote
1 answer
Can't call "git reset" inside git post-update hook?
I have set up a git repository for my webpage (it's simple HTML, generated from markdown by Pandoc). The repository will only be updated remotely by me, and I have successfully configured it to work with HTTPS.
Now, This is not a bare repository --…

Jay
- 153
- 1
- 7
1
vote
0 answers
libvirt hook qemu suse12
we have this qemu hook.
In suse 11 was working well but in suse 12 it is not working. The hook is setting the ports in openvswitch native-untagged. Do you know if there is some libvirt missing configuration in suse 12 for the hook to work?
We are…

user3310397
- 11
- 1
1
vote
0 answers
Getting new tags in Git Push on pre-receive
I'm using pre-receive hooks in GIT (using bash on Linux) to filter the push that are allowed into my repo.
I need to filter the push that developers do into my GIT repo, allowing just pushed with this requisites (# is number):
# Commits > 0 && #…

Hugo Meneses
- 11
- 1
1
vote
0 answers
Gitlab add default post-update
we've setup Gitlab (as was described at official site). All works fine.
Now we need to add git hook to new-created projects called post-update (lets say it is located at /home/git/gitolite/hook/post-update).
I think there is some easy way to use…

MealstroM
- 1,517
- 1
- 17
- 32
1
vote
2 answers
Adding SVN hooks - downtime required?
I have been asked to add a hook script to some SVN repositories. The repositories run under Apache with the mod_dav_svn module.
Do I need to restart Apache in order that the hook is picked up or will it Just Work from the moment the file is there…

Rich
- 1,343
- 7
- 28
- 39
1
vote
2 answers
git post-receive hook never executes
For some reason my post-received hook never executes. It's a simple two liner diagnostic script: echo "test" && touch /tmp/test. When I do git push origin master nothing happens. Does any-one know what am I doing wrong?
Zimno