summaryrefslogtreecommitdiff
path: root/distribution/posix/postinst
blob: d4e22cb445de1294abb046dfe83c874008b8fa87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
LOGF=${HOME}/xtrkcad-setup.log
if [ -f "${LOGF}" ] ; then
	chmod 666 ${LOGF}
	echo postinst: $* >> ${LOGF}
else
	LOGF=/dev/null
fi

# Note: when branching for Beta, change the next line to /usr/local/share/xtrkcad-beta
#       when building for GA, change the next line back to /usr/share/xtrkcad
INSTALLDIR=/usr/local/share/xtrkcad-beta

( su -c "sh ${INSTALLDIR}/xtrkcad-setup install ${INSTALLDIR}" -l $SUDO_USER ) >> ${LOGF} 2>&1

exit 0