Overview

Request 769966 superseded

- Again use setpriv but now switch to every single owner for clearing
the files of this owner (boo#1159740)

- Introduce a user mktex as replacement for user nobody (boo#1159740)


Dominique Leuenberger's avatar

%{_bindir}/getent group %{texusr} > /dev/null 2>&1 || %{_sbindir}/useradd -r %{?texuid:-u %texuid} -g %{texgrp} -d %{_fontcache} -s /bin/false %{texusr}

=> I assume you wanted getent passwd here -> checking if the user exists and if not, create it (not checking if the group exists and if not, create the user)


Dr. Werner Fink's avatar

Indeed, thanks for spotting!


Dominique Leuenberger's avatar

instead of multiple packages having code to create a user, you could make use of system-systuser machenism and have one spec file produce a sep package only responibsle for creating the user - the others could then Require (or requires(pre) user(%texusr)

See https://en.opensuse.org/openSUSE:Packaging_guidelines#Users_and_Groups


Request History
Dr. Werner Fink's avatar

WernerFink created request

- Again use setpriv but now switch to every single owner for clearing
the files of this owner (boo#1159740)

- Introduce a user mktex as replacement for user nobody (boo#1159740)


Staging Bot's avatar

staging-bot accepted review

Picked "openSUSE:Factory:Staging:I"


Factory Auto's avatar

factory-auto added opensuse-review-team as a reviewer

Please review sources


Staging Bot's avatar

staging-bot set openSUSE:Factory:Staging:I as a staging project

Being evaluated by staging project "openSUSE:Factory:Staging:I"


Factory Auto's avatar

factory-auto accepted review

Check script succeeded


Saul Goodman's avatar

licensedigger accepted review

ok


Dominique Leuenberger's avatar

dimstar accepted review


Dr. Werner Fink's avatar

WernerFink superseded request

superseded by 770139

openSUSE Build Service is sponsored by