aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrien <adrien@luxeylab.net>2023-03-15 17:27:26 +0100
committerAdrien <adrien@luxeylab.net>2023-03-15 17:27:26 +0100
commit85595a9205657dedc31ab23ce7f48e9150dc8b14 (patch)
tree46aebc1ea64b05d814cce63a35dc4f16e3c06b8c
parent031d029e10a3670ee26b0da66cd7d73be5802aa9 (diff)
downloadnixcfg-85595a9205657dedc31ab23ce7f48e9150dc8b14.tar.gz
nixcfg-85595a9205657dedc31ab23ce7f48e9150dc8b14.zip
there was a little problem
-rwxr-xr-xsshtool4
1 files changed, 2 insertions, 2 deletions
diff --git a/sshtool b/sshtool
index 24c19af..eb4627a 100755
--- a/sshtool
+++ b/sshtool
@@ -34,13 +34,13 @@ SSH_CONFIG=cluster/$CLUSTER/ssh_config
function header {
cat <<EOF
-export DEPLOYTOOL_ROOT_PASSWORD="$ROOT_PASS"
cat > /tmp/deploytool_askpass <<EOG
#!/usr/bin/env sh
-echo "\$DEPLOYTOOL_ROOT_PASSWORD"
+echo "\\\$DEPLOYTOOL_ROOT_PASSWORD"
EOG
chmod +x /tmp/deploytool_askpass
export SUDO_ASKPASS=/tmp/deploytool_askpass
+export DEPLOYTOOL_ROOT_PASSWORD="$ROOT_PASS"
sudo -A sh - <<'EOEVERYTHING'
set -e
EOF