rpms/sabayon/devel sabayon.spec,1.3,1.4

Warren Togami wtogami at redhat.com
Sun Mar 20 10:05:06 UTC 2005


Mark McLoughlin (markmc) wrote:
> -%pre
> -/usr/sbin/groupadd -r %{name} &>/dev/null || :
> -/usr/sbin/useradd  -r -s /sbin/nologin -c "Sabayon user" -g %{name} %{name} &>/dev/null || :
> -/usr/sbin/usermod -d "" %{name} &>/dev/null || :
> +%pre admin
> +/usr/sbin/groupadd -r %{name}-admin &>/dev/null || :
> +/usr/sbin/useradd  -r -s /sbin/nologin -c "Sabayon user" -g %{name}-admin %{name}-admin &>/dev/null || :
> +/usr/sbin/usermod -d "" %{name}-admin &>/dev/null || :

Thanks, this is better, however did you test this in the upgrade case? 
Wont it try to add the user and group every time you upgrade this package?

Warren Togami
wtogami at redhat.com




More information about the fedora-extras-list mailing list