Skip to content
This repository
tag: REL_5_4_1
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 16 lines (13 sloc) 0.482 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#! /bin/sh -e

. /etc/interchange/init.cfg
OPTS="--interchangeuser=$USER --linkprogram=/usr/lib/cgi-bin/ic/vlink --documentroot=$DOCROOT --catalogconf=/etc/interchange/catalogs.cfg"
if [ "$WEBSERVER" = "Apache2" ]; then
OPTS="$OPTS --serverconf=/etc/apache2/apache2.conf"
fi

CMD="/usr/lib/interchange/bin/makecat $OPTS $@"
if [ "$UID" -eq 0 ]; then
su -s /bin/sh -c "$CMD" $USER
else
OPTS="$OPTS --nocfg --norunning"
/usr/lib/interchange/bin/makecat -c makecat.cfg $OPTS $@
fi
Something went wrong with that request. Please try again.