Revision 808d898e
Von Moritz Bunkus vor mehr als 13 Jahren hinzugefügt
DEBIAN/DEBIAN/postinst | ||
---|---|---|
7 | 7 |
set -e |
8 | 8 |
# x = xtrace |
9 | 9 |
#set -x |
10 |
echo " ! "`date`" Postinst $1 !" >> /tmp/lxo-erp.log |
|
10 |
|
|
11 |
debugfile=$(mktemp /tmp/lx-erp.log.XXXXXX) |
|
12 |
echo " ! "`date`" Postinst $1 !" >> $debugfile |
|
11 | 13 |
|
12 | 14 |
source /usr/share/debconf/confmodule |
13 | 15 |
|
... | ... | |
111 | 113 |
case "$1" in |
112 | 114 |
|
113 | 115 |
upgrade) |
114 |
echo " ! "`date`" $1 !" >> /tmp/lxo-erp.log
|
|
116 |
echo " ! "`date`" $1 !" >> $debugfile
|
|
115 | 117 |
|
116 | 118 |
VER=`cat /var/www/lx-office-erp/VERSION | cut -d '.' -f2` |
117 | 119 |
if [ $VER = '7' ]; then |
118 |
echo " ! 2.7 !" >> /tmp/lxo-erp.log
|
|
120 |
echo " ! 2.7 !" >> $debugfile
|
|
119 | 121 |
echo "Version 2.7.x" |
120 | 122 |
mk_new_menu |
121 | 123 |
else |
... | ... | |
132 | 134 |
;; |
133 | 135 |
|
134 | 136 |
install|configure) |
135 |
echo " ! "`date`" $1 !" >> /tmp/lxo-erp.log
|
|
137 |
echo " ! "`date`" $1 !" >> $debugfile
|
|
136 | 138 |
|
137 | 139 |
mk_new_menu |
138 | 140 |
mk_new_config |
Auch abrufbar als: Unified diff
Keine vorhersehbaren temporären Dateinamen