Revision 30939200
Von Holger Lindemann vor etwa 14 Jahren hinzugefügt
DEBIAN/DEBIAN/postinst | ||
---|---|---|
ADMINPASSWORD="$RET"
|
||
|
||
cat /etc/lx-office-erp/authentication.pl | \
|
||
sed --expression "s/admin_password = /admin_password = $ADMINPASSWORD/g" \
|
||
sed --expression "s/{admin_password} = /{admin_password} = '$ADMINPASSWORD';#/g" \
|
||
> /tmp/1.txt
|
||
|
||
mv /tmp/1.txt /etc/lx-office-erp/authentication.pl
|
||
... | ... | |
PASSWORD="$RET"
|
||
|
||
cat /etc/lx-office-erp/authentication.pl | \
|
||
sed --expression "s/^password = /password = $PASSWORD/g" \
|
||
sed --expression "s/'password' => /'password' => '$PASSWORD', #/g" \
|
||
> /tmp/1.txt
|
||
|
||
cat /tmp/1.txt | \
|
Auch abrufbar als: Unified diff
Passwort für DB richtig einpflegen