From: Moritz Bunkus Date: Tue, 14 Jun 2011 13:21:55 +0000 (+0200) Subject: Keine vorhersehbaren temporären Dateinamen X-Git-Tag: release-2.6.3~17 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=808d898e3309b1533af2203e398a93a01df282e6;p=kivitendo-erp.git Keine vorhersehbaren temporären Dateinamen --- diff --git a/DEBIAN/DEBIAN/postinst b/DEBIAN/DEBIAN/postinst index 936221ca6..e430fc0d8 100755 --- a/DEBIAN/DEBIAN/postinst +++ b/DEBIAN/DEBIAN/postinst @@ -7,7 +7,9 @@ set -e # x = xtrace #set -x -echo " ! "`date`" Postinst $1 !" >> /tmp/lxo-erp.log + +debugfile=$(mktemp /tmp/lx-erp.log.XXXXXX) +echo " ! "`date`" Postinst $1 !" >> $debugfile source /usr/share/debconf/confmodule @@ -111,11 +113,11 @@ reload_web_server() { case "$1" in upgrade) - echo " ! "`date`" $1 !" >> /tmp/lxo-erp.log + echo " ! "`date`" $1 !" >> $debugfile VER=`cat /var/www/lx-office-erp/VERSION | cut -d '.' -f2` if [ $VER = '7' ]; then - echo " ! 2.7 !" >> /tmp/lxo-erp.log + echo " ! 2.7 !" >> $debugfile echo "Version 2.7.x" mk_new_menu else @@ -132,7 +134,7 @@ case "$1" in ;; install|configure) - echo " ! "`date`" $1 !" >> /tmp/lxo-erp.log + echo " ! "`date`" $1 !" >> $debugfile mk_new_menu mk_new_config