Fix the cobbler patch script. Extra \ character in previous CL.

Change-Id: I9bb2fe5d0d4776a0aef43fe6402e15c940c4f4c4
This commit is contained in:
Weidong Shao 2014-08-07 00:56:56 +00:00
parent 3374ecfde3
commit 1d0232c8dc

View File

@ -8,7 +8,7 @@ if [[ "$?" != "0" ]]; then
exit 1
else
# patch cobbler code
find /usr/lib -name manage_bind.py |xargs perl -pi.old -e 's/(\s+)(self\.logger\s+\= logger)/$1$2\n$1if self\.logger is None:\n$\1 import clogger\n$1 self\.logger = clogger.Logger\(\)/'
find /usr/lib -name manage_bind.py |xargs perl -pi.old -e 's/(\s+)(self\.logger\s+\= logger)/$1$2\n$1if self\.logger is None:\n$1 import clogger\n$1 self\.logger = clogger.Logger\(\)/'
echo "cobbler related packages are installed"
fi