Hi Serge,

On Mon, Jun 20, 2011 at 02:37:24PM -0600, Serge Dubrouski wrote:
> Sorry.

Is this the proper fix now?

Cheers,

Dejan

> On Mon, Jun 20, 2011 at 2:22 PM, Vadym Chepkov <[email protected]> wrote:
> 
> >
> > On Jun 20, 2011, at 3:55 PM, Serge Dubrouski wrote:
> >
> > > Patch is attached.
> >
> >
> > Your patch is damaged, it has lines cut short.
> >
> > Vadym
> > _______________________________________________
> > Linux-HA mailing list
> > [email protected]
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > See also: http://linux-ha.org/ReportingProblems
> >
> 
> 
> 
> -- 
> Serge Dubrouski.

> --- a/heartbeat/pgsql
> +++ b/heartbeat/pgsql
> @@ -540,9 +540,13 @@ pgsql_validate_all() {
>          return $OCF_ERR_INSTALLED;
>      fi
>  
> -    if ! runasowner "test -w $OCF_RESKEY_pgdata"; then
> -        ocf_log err "Directory $OCF_RESKEY_pgdata is not writable by 
> $OCF_RESKEY_pgdba"
> -        exit $OCF_ERR_PERM;
> +    if ocf_is_probe; then
> +        ocf_log info "Don't check $OCF_RESKEY_pgdata during probe"
> +    else
> +        if ! runasowner "test -w $OCF_RESKEY_pgdata"; then
> +            ocf_log err "Directory $OCF_RESKEY_pgdata is not writable by 
> $OCF_RESKEY_pgdba"
> +            exit $OCF_ERR_PERM;
> +        fi
>      fi
>  
>      if [ -n "$OCF_RESKEY_monitor_user" -a ! -n 
> "$OCF_RESKEY_monitor_password" ]

> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to