diff options
Diffstat (limited to 'distribution/posix/postinst')
-rwxr-xr-x | distribution/posix/postinst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/distribution/posix/postinst b/distribution/posix/postinst new file mode 100755 index 0000000..969aa7e --- /dev/null +++ b/distribution/posix/postinst @@ -0,0 +1,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 |