ajout du traitement touchentry
This commit is contained in:
parent
6e52f7563b
commit
5313a53db1
|
@ -1 +1 @@
|
|||
002003000
|
||||
002004000
|
||||
|
|
|
@ -272,6 +272,18 @@ function tl_deleteentry() {
|
|||
'
|
||||
}
|
||||
|
||||
function tl_touchentry() {
|
||||
awk '
|
||||
/^dn:/ {
|
||||
dn = $0
|
||||
print dn
|
||||
print "changetype: modify"
|
||||
print ""
|
||||
next
|
||||
}
|
||||
'
|
||||
}
|
||||
|
||||
function tl_keepattr() {
|
||||
local match_attr="$1"
|
||||
awk "$match_attr"'
|
||||
|
@ -1036,7 +1048,9 @@ d, moddelval
|
|||
D, moddelattr
|
||||
Supprimer l'attribut
|
||||
delentry
|
||||
Supprimer l'objet"
|
||||
Supprimer l'objet
|
||||
touchentry
|
||||
Forcer la réplication de l'objet en simulant une modification"
|
||||
|
||||
function get_transform_cmd() {
|
||||
# Créer une liste de commandes bash à évaluer en fonction des arguments: une
|
||||
|
@ -1151,6 +1165,7 @@ function get_transform_cmd() {
|
|||
d|md|moddel|moddelval) cmdparts=(tl_modifyattr delete);;
|
||||
D|moddelattr) cmdparts=(tl_deleteattr);;
|
||||
delentry|moddelentry) cmdparts=(tl_deleteentry);;
|
||||
touch|touchentry|modtouchentry) cmdparts=(tl_touchentry);;
|
||||
litteral) cmdpars=("$@");;
|
||||
*)
|
||||
eerror "$cmd: commande inconnue. elle sera ignorée"
|
||||
|
|
Loading…
Reference in New Issue