projects
/
noc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
call upload script with sudo
[noc.git]
/
ansible
/
files
/
torwaechter
/
post-receive
diff --git
a/ansible/files/torwaechter/post-receive
b/ansible/files/torwaechter/post-receive
index
57f7b2c
..
c1fdc54
100755
(executable)
--- a/
ansible/files/torwaechter/post-receive
+++ b/
ansible/files/torwaechter/post-receive
@@
-11,7
+11,7
@@
keys_pipe_to=$(git config hooks.keys_pipe_to 2>/dev/null)
keys_branch=${keys_branch:-master}
keys_file=${keys_file:-keys}
keys_branch=${keys_branch:-master}
keys_file=${keys_file:-keys}
-keys_pipe_to=${keys_pipe_to:-/usr/local/bin/update-keys-from-stdin.sh}
+keys_pipe_to=${keys_pipe_to:-sudo /usr/local/bin/update-keys-from-stdin.sh}
changedcommits=$( grep "refs/heads/${keys_branch}" | sed 's/\([0-9a-f]\+\)\s\+\([0-9a-f]\+\)\s\+.*/\1..\2/;' )
changedcommits=$( grep "refs/heads/${keys_branch}" | sed 's/\([0-9a-f]\+\)\s\+\([0-9a-f]\+\)\s\+.*/\1..\2/;' )