⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 init_slapd.sh

📁 samba最新软件
💻 SH
字号:
#!/bin/sh if [ -z "$LDBDIR" ]; then    LDBDIR=`dirname $0`/..    export LDBDIRfirm -rf tests/tmp/dbmkdir -p tests/tmp/dbif [ -f tests/tmp/slapd.pid ]; then    kill `cat tests/tmp/slapd.pid`    sleep 1fiif [ -f tests/tmp/slapd.pid ]; then    kill -9 `cat tests/tmp/slapd.pid`    rm -f tests/tmp/slapd.pidfi# we don't consider a slapadd failure as a test suite failure, as it# has nothing to do with ldbMODCONF=tests/tmp/modules.confrm -f $MODCONFtouch $MODCONF || exit 1slaptest -u -f $LDBDIR/tests/slapd.conf > /dev/null 2>&1 || { echo "enabling sladp modules"cat > $MODCONF <<EOFmodulepath	/usr/lib/ldapmoduleload	back_bdbEOF}slaptest -u -f $LDBDIR/tests/slapd.conf || {    echo "slaptest failed - skipping ldap tests"    exit 0}slapadd -f $LDBDIR/tests/slapd.conf < $LDBDIR/tests/init.ldif || exit 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -