]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
storage_deploy.sh fix sed line
authorThilo Fromm <thilo.fromm@profitbricks.com>
Thu, 25 Apr 2013 15:18:32 +0000 (17:18 +0200)
committerThilo Fromm <thilo.fromm@profitbricks.com>
Thu, 25 Apr 2013 15:18:32 +0000 (17:18 +0200)
Signed-off-by: Thilo Fromm <thilo.fromm@profitbricks.com>
storage_deploy.sh

index 44637ae10d3b10963f99cca9ad750d6535e25800..378d2858001334e46f6ce9d4c69ace1ad9588212 100755 (executable)
@@ -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; }