summaryrefslogtreecommitdiff
blob: cdb022537eb9acba446281acf592df5c531b1193 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Kirill Korotaev <dev@openvz.org>
Date: Tue, 22 Aug 2006 10:34:04 +0000 (+0400)
Subject: Fix vzmigrate to work with mawk (not gawk only)
X-Git-Url: http://git.openvz.org/?p=vzctl;a=commitdiff;h=ca21ee121297cd2e230895078fd3153230e37794

Fix vzmigrate to work with mawk (not gawk only)
http://bugzilla.openvz.org/show_bug.cgi?id=231

Signed-Off-By: Thorsten Schifferdecker <tsd@debian.systs.org>
Signed-Off-By: Kirill Korotaev <dev@openvz.org>
---

Index: vzctl-3.0.11/vzmigrate
===================================================================
--- vzctl-3.0.11.orig/vzmigrate
+++ vzctl-3.0.11/vzmigrate
@@ -375,7 +375,7 @@ fi
 
 log 1 "Syncing private"
 if ! rsync -aH --progress "$VE_PRIVATE" "root@$host:${VE_PRIVATE%/*}" | \
-		grep "% of" | awk --assign ORS="\r" '{print $10}'; then
+		grep "% of" | awk -v ORS="\r" '{print $10}'; then
 	log 1 "Failed to sync VPS private areas"
 	undo_quota_on
 	exit $MIG_ERR_COPY