[BACK]Return to fix_ldconfig CVS log [TXT][DIR] Up to [local] / openbsd / fill_chroot

File: [local] / openbsd / fill_chroot / fix_ldconfig (download)

Revision 1.1, Wed Dec 21 18:04:06 2005 UTC (18 years, 5 months ago) by andrew
Branch: MAIN

add stuff for the web server to get stuff we need into the chroot.

#!/bin/sh
# $RedRiver$

CHROOT=${CHROOT:=/home/andrew/www}

if [ ${CHROOT}"X" == "X" ]; then
  echo No CHROOT Specified!
  exit 255
fi

mkdir -p ${CHROOT}/bin
mkdir -p ${CHROOT}/var/run

cp /sbin/ldconfig ${CHROOT}/bin
chroot ${CHROOT} /bin/ldconfig /usr/local/lib
rm -f ${CHROOT}/bin/ldconfig