[opensuse-packaging] useradd in Specfile
Hello Friends, i would like to make an useradd in one of my spec-Files. How can i realize this? -- Sincereley yours Sascha Manns openSUSE Marketing Team (Weekly News) openSUSE Build Service Web: http://saschamanns.gulli.to Blog: http://lizards.opensuse.org/author/saigkill -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Sun, Jan 18, Sascha 'saigkill' Manns wrote:
Hello Friends,
i would like to make an useradd in one of my spec-Files. How can i realize this?
Look at packages like at, hal, dbus, who do this: PreReq: /usr/sbin/useradd preinstall: if getent passwd haldaemon >/dev/null then : OK haldaemon user already present else /usr/sbin/useradd -r -g haldaemon -c "User for haldaemon" \ -d /var/run/hal -o haldaemon 2>/dev/null || : fi Thorsten -- Thorsten Kukuk, Project Manager/Release Manager SLES SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg GF: Markus Rex, HRB 16746 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (2)
-
Sascha 'saigkill' Manns
-
Thorsten Kukuk