~ubuntu-branches/ubuntu/natty/sadms/natty

« back to all changes in this revision

Viewing changes to bin/_uninstall.sh

  • Committer: Bazaar Package Importer
  • Author(s): Gauvain Pocentek
  • Date: 2010-02-22 20:14:54 UTC
  • Revision ID: james.westby@ubuntu.com-20100222201454-up4zkzo13w9091i0
Tags: upstream-2.0.14~CVS20100222
ImportĀ upstreamĀ versionĀ 2.0.14~CVS20100222

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
# bbou@ac-toulouse.fr
 
3
# 2007-06-07 10:17:24  
 
4
# _uninstall.sh
 
5
 
 
6
### P A R A M S
 
7
 
 
8
MYVERBOSE=
 
9
if [ "$1" = "-v" ]; then
 
10
        MYVERBOSE="-v"
 
11
        shift
 
12
fi
 
13
MYPAM="$1"
 
14
if [ "${MYPAM}" = "-pam" ];then
 
15
        shift
 
16
else
 
17
        MYPAM=
 
18
fi
 
19
MYADMIN="$1"
 
20
MYADMINPWD="$2"
 
21
 
 
22
### I N C L U D E
 
23
 
 
24
. ./_include.sh
 
25
 
 
26
 
 
27
### S T A R T
 
28
 
 
29
# H E A D E R
 
30
echo "-------------------------------------------------------------------------------"
 
31
echo "S A D M S  `cat version | head -n 1`"
 
32
echo "Samba as Active Directory Member Server"
 
33
echo "bbou@ac-toulouse.fr"
 
34
echo "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"
 
35
echo "uninstall"
 
36
echo "-------------------------------------------------------------------------------"
 
37
echo "[BEGIN]"
 
38
 
 
39
if [ $# -lt 2 ]
 
40
then
 
41
        echo "Incorrect number of parameters"
 
42
        exit 1
 
43
fi
 
44
./_uninstall-core.sh ${MYVERBOSE} ${MYPAM} "${MYADMIN}" "${MYADMINPWD}"
 
45
result=$?
 
46
echo "[END]"
 
47
exit ${result}