Project

General

Profile

Actions

Bug #3527

closed

error on migration about escaping directive in migration script

Added by Vincent MEMBRÉ about 11 years ago. Updated about 9 years ago.

Status:
Released
Priority:
1
Category:
Packaging
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

when the ldif about a directive to convert is wrapped on multiple line, the sed executed just after is does not catch the line.

here : ou=Rudder,cn=rudder-configuration should be match

dn: directiveId=c2dd0579-3ce1-4277-aad0-628804f3a99e,activeTechniqueId=16d8e55
 3-da18-41e8-a4e6-238dba0da201,techniqueCategoryId=systemManagement,techniqueC
 ategoryId=systemSettings,techniqueCategoryId=Active Techniques,ou=Rudder,cn=r
 udder-configuration
directiveVariable: MOTD[0]:Hello les gens \"bisous\" 
directiveVariable: MOTD_EMPTY[0]:false

before the sed we have to use

        | perl -p0e "s/\n //g" \

to put the line in one line

Actions

Also available in: Atom PDF