diff options
Diffstat (limited to 'distribution/posix/prerm')
-rwxr-xr-x | distribution/posix/prerm | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/distribution/posix/prerm b/distribution/posix/prerm new file mode 100755 index 0000000..b5ae917 --- /dev/null +++ b/distribution/posix/prerm @@ -0,0 +1,15 @@ +#!/bin/sh +LOGF=/tmp/xtrkcad-setup.log +if [ -f "${LOGF}" ] ; then + chmod 666 ${LOGF} + echo prerm: $* >> ${LOGF} +else + LOGF=/dev/null +fi + +INSTALLDIR=/usr/share/xtrkcad + +( su -c "sh ${INSTALLDIR}/xtrkcad-setup remove ${INSTALLDIR}" -l $SUDO_USER ) >> ${LOGF} 2>&1 + +exit 0 + |