Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (10 sloc) 440 Bytes
#! /bin/sh -e
. /etc/interchange/init.cfg
OPTS="--interchangeuser=$USER --linkprogram=/usr/lib/cgi-bin/ic/vlink --documentroot=$DOCROOT --catalogconf=/etc/interchange/catalogs.cfg --serverconf=/etc/apache2/apache2.conf"
CMD="/usr/lib/interchange/bin/makecat $OPTS $@"
if [ "`/usr/bin/id -ru`" -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