diff options
Diffstat (limited to 'distribution/posix/postinst')
| -rwxr-xr-x | distribution/posix/postinst | 9 | 
1 files changed, 1 insertions, 8 deletions
| diff --git a/distribution/posix/postinst b/distribution/posix/postinst index 914534d..969aa7e 100755 --- a/distribution/posix/postinst +++ b/distribution/posix/postinst @@ -7,14 +7,7 @@ else  	LOGF=/dev/null  fi -if [ -d /usr/local/share/xtrkcad ] ; then -	INSTALLDIR=/usr/local/share/xtrkcad -elif [ -d /usr/share/xtrkcad ] ; then -	INSTALLDIR=/usr/share/xtrkcad -else -	echo No existing XTrkCad install >> ${LOGF} -	exit 1 -fi +INSTALLDIR=/usr/share/xtrkcad  ( su -c "sh ${INSTALLDIR}/xtrkcad-setup install ${INSTALLDIR}" -l $SUDO_USER ) >> ${LOGF} 2>&1 | 
