commit 8ac328e6f49ea825b3abcad2bdb6edbd6340e7c9
Author: Florian Haas <[email protected]>
Date:   Wed Jul 22 16:34:31 2009 +0200

    notify.sh: fix incorrect default value assignment.

Thanks for reporting this!

For the archives: if you get bitten by this bug, you can

1. work around by specifying the recipient explicitly in drbd.conf; or
2. grab the fixed script from
http://git.drbd.org/?p=drbd-8.3.git;a=blob_plain;f=scripts/notify.sh; or
3. apply the fix yourself (after all, it's just one character to change).

Cheers,
Florian

On 2009-07-22 15:07, Henrik Kuhn wrote:
> Hi drbd-users,
> 
> to assign default values in bash the syntax is
>   newvar=${from_var:-default_val}
> 
> Please see the diff for notify.sh:
> 13c13
> < RECIPIENT=${1:-root}
> ---
>> RECIPIENT=${1:=root}
> 
> 
> Best regards,
> Henrik



Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
drbd-user mailing list
[email protected]
http://lists.linbit.com/mailman/listinfo/drbd-user

Reply via email to