From: Thilo Fromm Date: Thu, 25 Apr 2013 15:18:32 +0000 (+0200) Subject: storage_deploy.sh fix sed line X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=2aa06c8376d22ef6b68fb69be4e6113187a0eedd;p=profitbricks%2Fjenkins-build-scripts.git storage_deploy.sh fix sed line Signed-off-by: Thilo Fromm --- diff --git a/storage_deploy.sh b/storage_deploy.sh index 44637ae..378d285 100755 --- a/storage_deploy.sh +++ b/storage_deploy.sh @@ -22,7 +22,7 @@ cleanup() { 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; }