[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3master/usr/share/se3/sbin/ -> clean_log_ldap.sh (source)

   1  #!/bin/bash
   2  
   3  #
   4  ##### Vide /var/lib/ldap lance via se3crontab tous les jours  relance slapd #####
   5  #
   6  ### $Id: clean_log_ldap.sh 8090 2014-03-29 21:37:43Z keyser $ ###
   7  #
   8   
   9  if [ "$1" = "--help" -o "$1" = "-h" ]
  10  then
  11  echo "permet de vider les logs ldap,"
  12  echo "teste et corrige le group mapping sur Profs et Eleves"
  13  echo "Ce script est lance tous les jours par cron à 01h45"
  14  echo ""
  15  echo "Usage : aucune option"
  16  fi
  17  
  18  ## On relance ldap pour créer un checkpoint
  19  /etc/init.d/slapd stop
  20  sleep 3
  21  /etc/init.d/slapd start
  22  sleep 2
  23  /usr/bin/db4.8_archive -d -h /var/lib/ldap
  24   
  25  # remise en place du GM au cas ou
  26  net groupmap list | grep "\bProfs\b" || net groupmap add unixgroup=Profs ntgroup=Profs
  27  net groupmap list | grep "\bEleves\b" || net groupmap add unixgroup=Eleves ntgroup=Eleves
  28   
  29  exit 0
  30  


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