summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-17 15:19:23 +0200
committerErich Eckner <git@eckner.net>2018-04-17 15:19:23 +0200
commitd26a78b39f019ae7411fb3ba26633f74973943bd (patch)
tree5468404ffc3c680545aadc0e6e6c88c7c5031935
parent5f1a146e90ae2e0919b8d010606f6969dd757ae5 (diff)
downloadbuilder-d26a78b39f019ae7411fb3ba26633f74973943bd.tar.xz
bin/slave-build-connect: skip update of last_connection
-rwxr-xr-xbin/slave-build-connect11
1 files changed, 2 insertions, 9 deletions
diff --git a/bin/slave-build-connect b/bin/slave-build-connect
index 53c882b..0743e96 100755
--- a/bin/slave-build-connect
+++ b/bin/slave-build-connect
@@ -18,8 +18,8 @@ if [ "x${SSH_ORIGINAL_COMMAND%% *}" = 'xget-assignment' ] || \
# shellcheck disable=SC2016
{
- printf 'INSERT INTO `ssh_log` (`date`,`build_slave`,`action`,`parameters`)'
- printf ' SELECT NOW(),`build_slaves`.`id`'
+ printf 'INSERT INTO `ssh_log` (`build_slave`,`action`,`parameters`)'
+ printf ' SELECT `build_slaves`.`id`'
printf ',from_base64("%s")' \
"$(
printf '%s' "${SSH_ORIGINAL_COMMAND%% *}" | \
@@ -35,13 +35,6 @@ if [ "x${SSH_ORIGINAL_COMMAND%% *}" = 'xget-assignment' ] || \
printf '%s' "$1" | \
base64 -w0
)"
- printf 'UPDATE `build_slaves`'
- printf ' SET `build_slaves`.`last_connection`=NOW()'
- printf ' WHERE `build_slaves`.`name`=from_base64("%s");\n' \
- "$(
- printf '%s' "$1" | \
- base64 -w0
- )"
} | \
mysql_run_query