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

INSTALLDIR=/usr/share/xtrkcad

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

exit 0