Revision 4857cb4a
Von Holger Lindemann vor fast 14 Jahren hinzugefügt
DEBIAN/DEBIAN/preinst | ||
---|---|---|
1 | 1 |
#!/bin/sh |
2 | 2 |
#Nur für das Update von einer 2.6.0 nötig, da hier gnadenlos gelöscht wird |
3 |
set -e |
|
3 |
#set -x |
|
4 |
|
|
5 |
( |
|
4 | 6 |
echo " ! "`date`" Preinst $1 !" >> /tmp/lxo-erp.log |
7 |
) |
|
5 | 8 |
|
6 | 9 |
if [ "$1" = "upgrade" ]; then |
10 |
echo " ! upgrade !" >> /tmp/lxo-erp.log |
|
7 | 11 |
cnt=`grep -c '\-e /usr/lib/lx-office-erp' /var/lib/dpkg/info/lx-office-erp.postrm` |
8 |
if ! [ $cnt == 0 ]; then |
|
12 |
echo " ! $cnt !" >> /tmp/lxo-erp.log |
|
13 |
if [ $cnt -gt 0 ]; then |
|
9 | 14 |
echo "#!/bin/sh" > /var/lib/dpkg/info/lx-office-erp.postrm |
10 | 15 |
echo "set -e" >> /var/lib/dpkg/info/lx-office-erp.postrm |
11 | 16 |
echo "echo ' ! '`date`' postrm2 $1 !'" >> /var/lib/dpkg/info/lx-office-erp.postrm |
12 | 17 |
chmod +x /var/lib/dpkg/info/lx-office-erp.postrm |
18 |
else |
|
19 |
echo " ! ok !" >> /tmp/lxo-erp.log |
|
13 | 20 |
fi |
14 | 21 |
fi |
15 | 22 |
|
scripts/inst_postgres_deb.sh | ||
---|---|---|
2 | 2 |
# e = exit on error |
3 | 3 |
set -e |
4 | 4 |
# x = xtrace |
5 |
set -x |
|
5 |
#set -x
|
|
6 | 6 |
|
7 | 7 |
FEHLER="Achtung!! Es hat ein Problem gegeben" |
8 | 8 |
ERRCNT=0 |
... | ... | |
117 | 117 |
fi |
118 | 118 |
|
119 | 119 |
|
120 |
tmp=`ls -r1 /etc/init.d/postgres* | head -1 -`
|
|
120 |
PGSQL=`ls -r1 /etc/init.d/postgres* | head -1 -`
|
|
121 | 121 |
|
122 | 122 |
#writeln 18 1 Datenbank neu starten |
123 | 123 |
$PGSQL reload |
Auch abrufbar als: Unified diff
Kleine Fehler