Thought of trying the rpms at:
http://download.opensuse.org/repositories/server:/ha-clustering/CentOS_5/
?
On Thu, Apr 3, 2008 at 10:44 PM, Brian Reichert <[EMAIL PROTECTED]> wrote:
> On Thu, Apr 03, 2008 at 03:42:43PM -0400, Brian Reichert wrote:
> > This is an extention of this bug:
> >
> > http://developerbugs.linux-foundation.org/show_bug.cgi?id=960
> >
> > My proposal is to _not_ supply '-d /var/lib/heartbeat/cores/hacluster'
> > clause in the %pre section, and to then use a 'usermod' command in
> > the %post section:
> >
> > # usermod -d /var/lib/heartbeat/cores/hacluster hacluster
> >
> > The first 'useradd' failure mode also exists in RHEL4. I expect
> > this has been breaking for a while...
>
> Almost: you do get the exit status in RHEL4, but the UID is _not_
> created. The subsequent use of -M prevents the check for the
> directory, so that invokation works.
>
> A proposed patch: this works for me under CentOS 5.1:
>
> --- heartbeat.spec.orig 2008-04-03 18:35:03.000000000 +0000
> +++ heartbeat.spec 2008-04-03 20:23:05.000000000 +0000
> @@ -670,7 +670,8 @@
> then
> : OK user %{HA_CCMUSER} already present
> else
> - USEROPT="-g %{HA_APIGROUP} -u %{HA_CCMUID} -d
> %{HA_COREDIR}/%{HA_CCMUSER}"
> + #USEROPT="-g %{HA_APIGROUP} -u %{HA_CCMUID} -d
> %{HA_COREDIR}/%{HA_CCMUSER}"
> + USEROPT="-g %{HA_APIGROUP} -u %{HA_CCMUID}"
> if
> /usr/sbin/useradd $USEROPT %{HA_CCMUSER} 2>/dev/null \
> || /usr/sbin/useradd -M $USEROPT %{HA_CCMUSER} 2>/dev/null
> @@ -685,7 +686,7 @@
> ###########################################################
> %post
> ###########################################################
> -true
> +usermod -d %{HA_COREDIR}/%{HA_CCMUSER} %{HA_CCMUSER}
> ###########################################################
> %preun
> ###########################################################
>
>
>
> --
> Brian Reichert <[EMAIL PROTECTED]>
> 55 Crystal Ave. #286 Daytime number: (603) 434-6842
> Derry NH 03038-1725 USA BSD admin/developer at large
> _______________________________________________
> 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