Questions tagged [hook]

43 questions
0
votes
0 answers

Iptables service reload or restart should restart another service, like Docker

I know there is a way, I just don't remind how to. I need to have the IPTables restart the Docker service when I reload, restart the iptables. I am pretty sure there is a HOOK way to that with systemctl. Can someone light my way please ? Regards,
yield
  • 771
  • 1
  • 9
  • 24
0
votes
0 answers

Elastic beanstalk hooks are not created on the first "eb deploy" or in the new EC2 instances

With reference to the docs, http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/custom-platform-hooks.html http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customize-containers-ec2.html Consider I have .ebextension/03_hooks.config which…
0
votes
1 answer

pm2 throws error in git hook

My Server throws an error if the following git post-receive hook is called: #!/bin/sh # pm2 start main.js --name powerapp If the command is entered by one by one into the terminal it will work. So what am I doing wrong? Error: remote:…
user1255102
  • 171
  • 1
  • 1
  • 4
0
votes
1 answer

Postfix: Pipe to script bounces sent to specific virtual user

I'm building a small ticket system where basically some mail accounts of my email server are piped into a PHP script that will take care of the emails. The server is running, I can send email over SMTP without any issues, I can also receive them on…
TCB13
  • 1,166
  • 1
  • 14
  • 34
0
votes
1 answer

Run shell script as another user after git hook

I'm trying to execute a shell script that initialize the deployment of a web application after a git push. The shell script must be run as root ( or another user that is not the git user ). Searching in SO I've found a way to launch a shell script…
DanielDiSu
  • 101
  • 2
0
votes
1 answer

sudoers nopasswd switch user and run node not working

I'm trying to prevent a password prompt on a command that runs node as the www user by adding the following line to the bottom of my /etc/sudoers file: gituser ALL=(ALL) NOPASSWD: /usr/bin/sudo -u web-user NODE_ENV=production /path/to/node app.js I…
techjacker
  • 133
  • 6
0
votes
1 answer

Is it possible de read and modify conflicted files in a svn hook

I'm wondering if it is possible to read the two merging files and modify the result in a svn hook in order to prevent a conflict I know how to fix automatically? Before a delivery, modified files are audited, if the audit is OK, the header of the…
0
votes
1 answer

Is there a hook that I can use to detect if one of my hard drive partitions on my server is full?

I have a server with a partition that contains all the uploaded files from my users... It gets empty after the files received are send to the CDN. Everything works. But I am worried that one day the partition might get full. My first question…
jnbdz
  • 927
  • 5
  • 24
  • 46
0
votes
1 answer

Virtualbox hook into host machine

I want to write a script that can add new hosts to /etc/hosts from within a virtual machine as I use VMs for web development and need to set up virtualhosts that are accessible from the host machine. Obviously I can do this manually, but where's the…
John Hunt
  • 428
  • 3
  • 10
  • 20
0
votes
1 answer

Auto update changeset hook fails with status -1

I am using Mercurial SCM over a LAN using a normal shared folder instead of HTTP. I'm having a problem getting the auto update hook to run. I have entered this hook as detailed in the FAQ. This installs the hook, but when I push something to the…
Gary Willoughby
  • 102
  • 2
  • 11
0
votes
1 answer

Determine branch in post-update hook

I have a git (gitosis) repo where every developer have a main branch. I have a script in post-update hook that rebuild main web site and test websites for every developer on every PUSH. I want to rebuild only site corresponding to the committed…
John
  • 542
  • 5
  • 16
0
votes
1 answer

Subversion post commit hook checkout to website document root

We have Subversion running on our Debian development server. We have setup a post-commit hook to checkout the contents of the repository to /var/www/ourwebsite There are about 2GB worth of files and each checkout takes about 10-15 minutes. If we are…
Tim
  • 171
  • 2
  • 3
  • 8
0
votes
1 answer

Linux (CentOS) - Is there any (feasible) way to add a file write "hook"?

I have a mod_security log parsing script to load data into a mysql database which is then accessed by our Project Management System to display recent flaggings by the rulesets for our developers. The script works great, but I need to work out how…
Joshua Enfield
  • 3,454
  • 8
  • 42
  • 59
1 2
3