Hi,

On Wed, Nov 28, 2007 at 04:51:22AM +0100, Christian Rish?j wrote:
> 
> The validate action of the MySQL OCF resource agent currently checks / 
> etc/passwd for the MySQL test user. This doesn't make much sense, as  
> the test user is internal to MySQL.

Yes, it does not.

> Thus, please consider the following patch:
> 
> --- mysql.orig        2007-11-28 01:21:54.245785953 +0100
> +++ mysql     2007-11-28 01:22:11.776050393 +0100
> @@ -199,12 +199,6 @@
>       exit $OCF_ERR_ARGS;
>      fi
> 
> -    getent passwd $OCF_RESKEY_test_user >/dev/null 2>&1
> -    if [ ! $? -eq 0 ]; then
> -     ocf_log err "Test user $OCF_RESKEY_test_user doesn't exit";
> -     exit $OCF_ERR_ARGS;
> -    fi
> -
>      getent group $OCF_RESKEY_group >/dev/null 2>&1
>      if [ ! $? -eq 0 ]; then
>       ocf_log err "Group $OCF_RESKEY_group doesn't exist";

Thanks for the patch.

Cheers,

Dejan

> 
> Regards
> 
> Christian Rish?j
> 
> e:    [EMAIL PROTECTED]
> m:    +45 6130 0669
> a:    skindergade 34
>       apartment 17
>       dk-1159 copenhagen k
> 
> _______________________________________________
> 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