forked from Deuxfleurs/nixcfg
there was a little problem
This commit is contained in:
parent
031d029e10
commit
85595a9205
1 changed files with 2 additions and 2 deletions
4
sshtool
4
sshtool
|
@ -34,13 +34,13 @@ SSH_CONFIG=cluster/$CLUSTER/ssh_config
|
||||||
|
|
||||||
function header {
|
function header {
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
export DEPLOYTOOL_ROOT_PASSWORD="$ROOT_PASS"
|
|
||||||
cat > /tmp/deploytool_askpass <<EOG
|
cat > /tmp/deploytool_askpass <<EOG
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
echo "\$DEPLOYTOOL_ROOT_PASSWORD"
|
echo "\\\$DEPLOYTOOL_ROOT_PASSWORD"
|
||||||
EOG
|
EOG
|
||||||
chmod +x /tmp/deploytool_askpass
|
chmod +x /tmp/deploytool_askpass
|
||||||
export SUDO_ASKPASS=/tmp/deploytool_askpass
|
export SUDO_ASKPASS=/tmp/deploytool_askpass
|
||||||
|
export DEPLOYTOOL_ROOT_PASSWORD="$ROOT_PASS"
|
||||||
sudo -A sh - <<'EOEVERYTHING'
|
sudo -A sh - <<'EOEVERYTHING'
|
||||||
set -e
|
set -e
|
||||||
EOF
|
EOF
|
||||||
|
|
Loading…
Reference in a new issue