View | Details | Raw Unified | Return to bug 12372
Collapse All | Expand All

(-)a/debian/scripts/koha-mysql (-2 / +17 lines)
Lines 29-36 else Link Here
29
    exit 1
29
    exit 1
30
fi
30
fi
31
31
32
is_instance "$1" || die "Usage: $0 instancename"
32
usage()
33
{
34
    local scriptname=$0
35
    cat <<EOF
36
Run mysql in the context of a given Koha instance.
37
38
Usage: $scriptname instancename [ optional mysql arguments ]
39
40
EOF
41
}
42
43
# Parse command line.
44
[ $# -ge 1 ] || ( usage ; die "Missing instance name..." )
45
33
name="$1"
46
name="$1"
47
48
is_instance "$name" || ( usage; die "Unknown instance '$name'" )
49
34
shift # remove instance name from argument list.
50
shift # remove instance name from argument list.
35
kohaconfig="/etc/koha/sites/$name/koha-conf.xml"
51
kohaconfig="/etc/koha/sites/$name/koha-conf.xml"
36
52
37
- 

Return to bug 12372