=================================================================== RCS file: /home/cvs/OpenXM/misc/packages/Linux/Debian2/debian/openxm.postinst,v retrieving revision 1.1.1.1 retrieving revision 1.8 diff -u -p -r1.1.1.1 -r1.8 --- OpenXM/misc/packages/Linux/Debian2/debian/openxm.postinst 2006/02/08 08:52:53 1.1.1.1 +++ OpenXM/misc/packages/Linux/Debian2/debian/openxm.postinst 2010/02/22 11:06:33 1.8 @@ -3,13 +3,19 @@ if [ -x /usr/bin/update-menus ] ; then update-menus ; fi # -OpenXM_HOME=/usr/local/OpenXM /usr/local/OpenXM/download/openxm-install.sh -rm -rf /root/OpenXM_tmp +rm -rf /root/.asir-tmp +OpenXM_HOME=/usr/local/OpenXM HOME=/root /usr/local/OpenXM/download/openxm-install.sh +rm -rf /root/OpenXM_tmp # -echo "--------------------------------------------------------------------------" -echo "If you will install asir now under /usr/local/OpenXM/bin, please answer y." -echo "If not (e.g., installing this package for commercial system,) " -echo "please answer n." -echo "--------------------------------------------------------------------------" -(export OpenXM_HOME=/usr/local/OpenXM ; /usr/local/bin/openxm asir-install.sh) +if [ -f /usr/local/bin/openxm ] ; then + echo "--------------------------------------------------------------------------" ; + echo "If you will install asir now under /usr/local/OpenXM/bin, please answer y." ; + echo "If not (e.g., installing this package for commercial system,) " ; + echo "please answer n." ; + echo "--------------------------------------------------------------------------" ; +OpenXM_HOME=/usr/local/OpenXM HOME=/root /usr/local/bin/openxm asir-install.sh ; +fi +rm -rf /root/.asir-tmp +(cd /usr/local/OpenXM && chown -fR root *) +echo "Installation of the package of openxm is completed."