RPM Postinstallationscript geht nicht

Lothar Behrens <[email protected]>
Newsgroups gmane.linux.suse.programming
Message-ID <[email protected]>
Hi,

ich möchte auf den Desktop des installierenden Benutzers ein Icon 
anlegen. RPM wird mit sudo aufgerufen.

Das Script geht aber nicht. Warum ?

%post
cp %{prefix}/share/lbdmf/wxWrapper.desktop /home/`who | awk 'BEGIN {} { 
print $$1; }'`/Desktop
ldconfig

%postun
rm /home/`who | awk 'BEGIN {} { print $$1; }'`/Desktop/wxWrapper.desktop

In Maximum RPM habe ich nichts gefunden, das auf %home oder ähnliche 
Macros hinweist.

Danke, Lothar

--
Lothar Behrens				|	Rapid Prototyping ...
Heinrich-Scheufelen-Platz 2		|	
73252 Lenningen  				|	www.lollisoft.de
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.