[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3-synchro/DEBIAN/ -> prerm (source)

   1  #!/bin/bash -e
   2  #$Id:$
   3  
   4  if [ "$1" = "remove" ]; then
   5  
   6      . /usr/share/se3/includes/functions.inc.sh
   7      . /usr/share/se3/includes/config.inc.sh -cls
   8      echo "desinstallation du serveur unison..."
   9      echo "desinstallation du serveur ssh sur le port 22222"
  10          if [ ! -L /usr/sbin/sshd_ext ]; then 
  11              ln -s /usr/sbin/sshd /usr/sbin/sshd_ext
  12          fi
  13          if [ -f /etc/init.d/sshd ]; then
  14              # lenny et +
  15              sshd="sshd"
  16          else
  17              #etch
  18              sshd="ssh"
  19          fi             
  20          update-rc.d -f $sshd}_ext remove
  21          /etc/init.d/$sshd}_ext stop
  22      echo "desinstallation du module"
  23          if [ "$unison" == "" ]; then
  24              SETMYSQL unison 0 "Activation du module de synchronisation de fichiers" 6
  25          elif [ "$unison" == "1" ]; then
  26              CHANGEMYSQL unison 0
  27          fi
  28      . /usr/share/se3/includes/config.inc.sh -csf 
  29  
  30  fi
  31  
  32  exit 0


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