Skip to content
This repository
tag: REL_4_9_1
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

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

# source configuration file with defaults
if [ -f /etc/default/interchange ]; then
. /etc/default/interchange
fi

. /etc/interchange/init.cfg
OPTS="SocketFile=/var/run/interchange/interchange.sock IPCsocket=/var/run/interchange/interchange.sock.ipc PIDfile=/var/run/interchange/interchange.pid --pidfile=/var/run/interchange/interchange.pid --log=/var/log/interchange/error.log --rundir=/var/run/interchange"
CMD="env MINIVEND_STORABLE=$USE_STORABLE /usr/lib/interchange/bin/interchange $OPTS $@"
if [ "$UID" -eq 0 ]; then
su -s /bin/sh -c "$CMD" $USER
else
$CMD
fi
Something went wrong with that request. Please try again.