From 808d898e3309b1533af2203e398a93a01df282e6 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 14 Jun 2011 15:21:55 +0200 Subject: [PATCH] =?utf8?q?Keine=20vorhersehbaren=20tempor=C3=A4ren=20Datei?= =?utf8?q?namen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- DEBIAN/DEBIAN/postinst | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 -- 2.20.1