Revision 30939200
Von Holger Lindemann vor mehr als 13 Jahren hinzugefügt
DEBIAN/DEBIAN/postinst | ||
---|---|---|
82 | 82 |
ADMINPASSWORD="$RET" |
83 | 83 |
|
84 | 84 |
cat /etc/lx-office-erp/authentication.pl | \ |
85 |
sed --expression "s/admin_password = /admin_password = $ADMINPASSWORD/g" \
|
|
85 |
sed --expression "s/{admin_password} = /{admin_password} = '$ADMINPASSWORD';#/g" \
|
|
86 | 86 |
> /tmp/1.txt |
87 | 87 |
|
88 | 88 |
mv /tmp/1.txt /etc/lx-office-erp/authentication.pl |
... | ... | |
95 | 95 |
PASSWORD="$RET" |
96 | 96 |
|
97 | 97 |
cat /etc/lx-office-erp/authentication.pl | \ |
98 |
sed --expression "s/^password = /password = $PASSWORD/g" \
|
|
98 |
sed --expression "s/'password' => /'password' => '$PASSWORD', #/g" \
|
|
99 | 99 |
> /tmp/1.txt |
100 | 100 |
|
101 | 101 |
cat /tmp/1.txt | \ |
Auch abrufbar als: Unified diff
Passwort für DB richtig einpflegen