diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2024-11-14 19:35:45 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2024-11-14 19:35:45 +0100 |
commit | df5520aa2dae5b3ce7abf8733dcdd152898af163 (patch) | |
tree | 00d3047bfb14f682bfb5a21010c731ed649bfed7 /distribution/posix/prerm | |
parent | df247efec654e512242e4f4f1b0212034f9e01fe (diff) | |
parent | ec3c0f6f6e7153fa797dc57a0e95779cbc63a23b (diff) |
Merge branch 'release/debian/1_5.3.0GA-1'debian/1_5.3.0GA-1
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 + |