Added message to indicate that script is done
This commit is contained in:
parent
7f21d2b22f
commit
293f0f28b5
@ -384,7 +384,6 @@ while IFS= read -r line; do
|
|||||||
fi
|
fi
|
||||||
done < "${SSH_CONFIG_FILE}" > "ssh_conf.temp" && mv "ssh_conf.temp" "${SSH_CONFIG_FILE}"
|
done < "${SSH_CONFIG_FILE}" > "ssh_conf.temp" && mv "ssh_conf.temp" "${SSH_CONFIG_FILE}"
|
||||||
|
|
||||||
cat "${SSH_CONFIG_FILE}"
|
|
||||||
shopt -u nocasematch
|
shopt -u nocasematch
|
||||||
|
|
||||||
if [[ "${wrote_new_data}" -eq "1" ]]; then
|
if [[ "${wrote_new_data}" -eq "1" ]]; then
|
||||||
@ -424,3 +423,6 @@ if [[ "${SSH_RESULT}" -ne "0" ]]; then
|
|||||||
log "error" "Second set of SSH commands were unable to execute, ssh returned status code ${SSH_RESULT}"
|
log "error" "Second set of SSH commands were unable to execute, ssh returned status code ${SSH_RESULT}"
|
||||||
exit "${SSH_RESULT}"
|
exit "${SSH_RESULT}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
log "info" "Finished, login to remote with ${ssh_user_to_create}@${ssh_host_name}"
|
||||||
|
Loading…
Reference in New Issue
Block a user