Signed-off-by: Thilo Fromm <thilo.fromm@profitbricks.com>
local srv="$1"
# remove installer key from list of root authorized keys
- rexec "$srv" "sed 's/.*\ storageautoinstaller@host/# ...key removed by auto-deploy script./' /root/.ssh/authorized_keys" \
+ rexec "$srv" "sed -i 's/.*\ storageautoinstaller@host/# ...key removed by auto-deploy script./' /root/.ssh/authorized_keys" \
|| { log " ERROR removing installer ssh key from storage server $srv."
log " ####### MANUAL ATTENTION REQUIRED #######"
return 1; }