[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3master/usr/share/se3/scripts/ -> creation_branche_Trash.sh (source)

   1  #!/bin/bash
   2  
   3  #
   4  ## $Id: creation_branche_Trash.sh 6239 2011-03-16 07:39:37Z ericg $ ##
   5  #
   6  ##### Script destine a creer la branche Trash si elle n'existe pas - Stephane Boireau #####
   7  #
   8  
   9  . /usr/share/se3/includes/config.inc.sh -l
  10  
  11  t=$(ldapsearch -xLLL ou=Trash)
  12  if [ -n "$t" ]; then
  13      echo "La branche Trash existe deja."
  14  else
  15      mkdir -p /root/tmp
  16      echo "dn: ou=Trash,$ldap_base_dn
  17  objectClass: organizationalUnit
  18  ou: Trash
  19  " > /root/tmp/creation_ou_Trash.ldif
  20      ldapadd -x -D $adminRdn,$ldap_base_dn -w $adminPw -f /root/tmp/creation_ou_Trash.ldif
  21  fi


Generated: Tue Mar 17 22:47:18 2015 Cross-referenced by PHPXref 0.7.1