Passwort für DB richtig einpflegen
authorHolger Lindemann <hli@lenny.hoch.ul>
Sat, 5 Mar 2011 10:16:52 +0000 (11:16 +0100)
committerHolger Lindemann <hli@lenny.hoch.ul>
Sat, 5 Mar 2011 10:16:52 +0000 (11:16 +0100)
DEBIAN/DEBIAN/postinst

index 8a9d974..a681b98 100755 (executable)
@@ -82,7 +82,7 @@ set_lx_office_erp_web_admin_password() {
        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
@@ -95,7 +95,7 @@ set_lx_office_erp_authentication_db_user_password() {
        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 | \