~ubuntu-branches/debian/experimental/389-ds-base/experimental

« back to all changes in this revision

Viewing changes to ldap/admin/src/scripts/db2bak.in

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2014-07-08 15:50:11 UTC
  • mfrom: (0.2.2)
  • Revision ID: package-import@ubuntu.com-20140708155011-r66lvtioamqwaype
Tags: 1.3.2.19-1
* New upstream release.
* admin_scripts.diff: Updated to fix more bashisms.
* watch: Update the url.
* Install failedbinds.py and logregex.py scripts.
* init: Use status from init-functions.
* control: Update my email.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
    echo "        -h           - Display usage"  
22
22
}
23
23
 
24
 
if [ $# -gt 4 ]
 
24
if [ $# -lt 1 ] || [ $# -gt 4 ]
25
25
then
26
26
    usage
27
27
    exit 1
28
28
fi
29
 
 
30
 
if [ "$#" -gt 0 ]
31
 
then
32
 
    if [[ $1 != -* ]]
33
 
    then
 
29
case $1 in
 
30
    -*)
 
31
        usage
 
32
        exit 1
 
33
        ;;
 
34
    *)
34
35
        bak_dir=$1
35
36
        shift
36
 
    fi
37
 
fi
 
37
        ;;
 
38
esac
38
39
 
39
40
while getopts "hqd:Z:vi:a:SD" flag
40
41
do