diff options
author | Parabola git <git@parabola.nu> | 2020-12-15 08:00:03 +0000 |
---|---|---|
committer | Parabola git <git@parabola.nu> | 2020-12-15 08:00:03 +0000 |
commit | 33fdb0dafd10a5fa03e2d3990978f1d05c242720 (patch) | |
tree | c1e773d9f7205090619d02bb82b626fc1b688e91 | |
parent | 46e198c6ac2f4f73cfc6900a8f7c00d7273a9d75 (diff) |
Update from cron
-rwxr-xr-x | .config/git/hooks/post-receive.d/notify-pbot-git-hook | 7 | ||||
-rw-r--r-- | last_git_login.log | 13 |
2 files changed, 16 insertions, 4 deletions
diff --git a/.config/git/hooks/post-receive.d/notify-pbot-git-hook b/.config/git/hooks/post-receive.d/notify-pbot-git-hook index f58cc56..12ddab4 100755 --- a/.config/git/hooks/post-receive.d/notify-pbot-git-hook +++ b/.config/git/hooks/post-receive.d/notify-pbot-git-hook @@ -30,19 +30,18 @@ ## constants ## -readonly LOG_PBOT_GIT_HOOK=1 readonly LIB_DIR=/usr/lib/parabola-hackers readonly LOG_DIR=/var/log/pbot +readonly LOG_FILE=${LOG_DIR}/notify-pbot-$(date +%Y.%m.%d-%H.%M.%S)-${REPO} readonly SHA_REGEX='^([0-9a-f]{40})$' readonly REPO=$(basename $(pwd)) -readonly LOG_FILE=${LOG_DIR}/notify-pbot-$(date +%Y.%m.%d-%H.%M.%S)-${REPO} ## logging ## -LogParseRefData() +LogParseRefData() # (var_name [var_name ... ]) { - while (( LOG_PBOT_GIT_HOOK && $# )) ; do echo "$1=${!1}" >> ${LOG_FILE} ; shift ; done ; + while (( $# )) && echo "${1}=${!1-ERR}" 2> /dev/null >> "${LOG_FILE}" ; do shift ; done ; } diff --git a/last_git_login.log b/last_git_login.log new file mode 100644 index 0000000..394ff10 --- /dev/null +++ b/last_git_login.log @@ -0,0 +1,13 @@ +2020-12-15-07-00-04 last_ssh_sha=SHA256:aET/XRxpMmRy3jxOVcPSAMlVuUAB/3xvEZUhp4b6SEo\n +hacker_login=aurelien hacker_ssh_sha=SHA256:2NAohh+7YjUspoD0OvT0mOSuYFiA3yBeBko+Fw1iNy4 + +hacker_login=alfplayer hacker_ssh_sha=SHA256:YWtB7RAXND5kheh7776t/IQTQU7mOFtaBE44wI27pH0 + +hacker_login=gnutoo hacker_ssh_sha=SHA256:Eu5hH4O6w/ZQsgkbfAnPhp2kwaXT8zysc+boYZII8Zk + +hacker_login=freemor hacker_ssh_sha=SHA256:66Ax+eO3pJLV/CpmDbqGU8xGb39a1O7/Qgmq5GVPzGo + +hacker_login=jorginho hacker_ssh_sha=SHA256:ykYxtfZB5MTmE3iiHQy3VyDq0snUL1UVS9e8uI7CTKE + +hacker_login=bill-auger hacker_ssh_sha=SHA256:aET/XRxpMmRy3jxOVcPSAMlVuUAB/3xvEZUhp4b6SEo + |