[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3master/DEBIAN/ -> preinst (source)

   1  #! /bin/bash
   2  
   3  set -e
   4  (
   5  dpkg-divert --package se3 --add --rename --divert /etc/.cron_mrtg.divert /etc/cron.d/mrtg
   6  dpkg-divert --package se3 --add --rename --divert /etc/mrtg.cfg.divert /etc/mrtg.cfg 
   7  # dpkg-divert --package se3 --add --rename --divert /usr/share/backuppc/image/BackupPC_stnd.css.divert /usr/share/backuppc/image/BackupPC_stnd.css 
   8  # dpkg-divert --package se3 --add --rename --divert /etc/backuppc/apache.conf.divert /etc/backuppc/apache.conf 
   9  # dpkg-divert --package se3 --add --rename --divert /usr/share/backuppc/lib/BackupPC/CGI/Lib.pm.divert /usr/share/backuppc/lib/BackupPC/CGI/Lib.pm 
  10  dpkg-divert --package se3 --add --rename --divert  /etc/php5/apache2/php.ini.divert /etc/php5/apache2/php.ini 
  11  dpkg-divert --package se3 --add --rename --divert /etc/php5/cli/php.ini.divert /etc/php5/cli/php.ini 
  12  dpkg-divert --package se3 --add --rename --divert /etc/default/apache2.divert  /etc/default/apache2 
  13  
  14  dpkg-divert --package se3 --add --rename --divert /etc/cups/mime.convs.divert  /etc/cups/mime.convs 
  15  dpkg-divert --package se3 --add --rename --divert /etc/cups/mime.types.divert  /etc/cups/mime.types 
  16  dpkg-divert --package se3 --add --rename --divert /etc/syslog.conf.divert /etc/syslog.conf 
  17  
  18  dpkg-divert --package se3 --add --rename --divert /usr/share/se3/scripts/start_poste.divert /usr/share/se3/scripts/start_poste.sh
  19  
  20  # No rename, may have real conf in place (reinstall for exemple)
  21  dpkg-divert --package se3 --add --divert /etc/samba/smb.conf.divert  /etc/samba/smb.conf 
  22  dpkg-divert --package se3 --add --divert  /etc/ssmtp/ssmtp.conf.divert  /etc/ssmtp/ssmtp.conf 
  23  dpkg-divert --package se3 --add --divert /etc/backuppc/localhost.pl.divert  /etc/backuppc/localhost.pl
  24  dpkg-divert --package se3 --add --divert  /etc/ldap/slapd.conf.divert /etc/ldap/slapd.conf
  25  dpkg-divert --package se3 --add --divert  /etc/ldap/ldap.conf.divert /etc/ldap/ldap.conf 
  26  dpkg-divert --package se3 --add --divert  /etc/nsswitch.conf.divert /etc/nsswitch.conf 
  27  dpkg-divert --package se3 --add --divert  /etc/pam_ldap.conf.divert /etc/pam_ldap.conf 
  28  dpkg-divert --package se3 --add --divert  /etc/libnss-ldap.conf.divert /etc/libnss-ldap.conf 
  29  ) >/dev/null
  30  
  31  # Nettoyage sbin
  32  
  33  if [ -e /usr/share/se3/sbin/permse3 ]; then
  34  rm -f /usr/share/se3/sbin/permse3
  35  ln -s /usr/share/se3/scripts/permse3 /usr/share/se3/sbin/permse3 
  36  fi
  37  
  38  
  39  
  40  
  41  #if [ -e  ]; then
  42  #rm -f 
  43  #fi
  44  
  45  # Nettoyage scripts
  46  
  47  
  48  if [ -e /usr/share/se3/scripts/verif_client.sh ]; then
  49  rm -f /usr/share/se3/scripts/verif_client.sh
  50  fi
  51  
  52  exit 0


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