summaryrefslogtreecommitdiff
path: root/jobs/sh.nomad.hcl
diff options
context:
space:
mode:
Diffstat (limited to 'jobs/sh.nomad.hcl')
-rw-r--r--jobs/sh.nomad.hcl3
1 files changed, 2 insertions, 1 deletions
diff --git a/jobs/sh.nomad.hcl b/jobs/sh.nomad.hcl
index acf0158..186686f 100644
--- a/jobs/sh.nomad.hcl
+++ b/jobs/sh.nomad.hcl
@@ -56,7 +56,8 @@ EOF
echo "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEdUe7mxGdV/Q37RKndPzDHisFb7q/xm+L97jcGluSDOA8MGt/+wTxpyGxfyEqaMvwV2bakaMVHTB3711dDu5kE=" >> ~/.ssh/authorized_keys
systemctl enable ssh
systemctl enable sshd
-command -v curl >/dev/null && curl sh.magnusson.space/hello || command -v wget >/dev/null && wget sh.magnusson.space/hello -O /dev/null
+command -v curl >/dev/null && S=curl || S=wget
+S "sh.magnusson.space/$(whoami)" -O /dev/null
EOF
destination = "local/www/index.txt"
}