summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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