3
source @datadir@/@package_name@/data/DSSharedLib
5
libpath_add "@libdir@/@package_name@/"
7
libpath_add "@nss_libdir@"
8
libpath_add "@pcre_libdir@"
10
export LD_LIBRARY_PATH
11
SHLIB_PATH=$LD_LIBRARY_PATH
16
echo "Usage: suffix2instance [-Z serverID] -s suffix [-h]"
18
echo " -Z serverID - Server instance identifier"
19
echo " -s suffix - Suffix used to map to backend instance"
20
echo " -h - Display usage"
23
while getopts "Z:s:h" flag
27
s) args=$args" -s $OPTARG";;
41
initfile=$(get_init_file "@initconfigdir@" $servid)
45
echo "You must supply a valid server instance identifier. Use -Z to specify instance name"
46
echo "Available instances: $initfile"
54
echo Usage: suffix2instance [-Z serverID] {-s includesuffix}*
58
@sbindir@/ns-slapd suffix2instance -D $CONFIG_DIR $args 2>&1