Bug 3358 - postinstall scriptlet only partially honours SLIMSERVER_USER
: postinstall scriptlet only partially honours SLIMSERVER_USER
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: RPM
: 6.2.2
: PC Fedora
: P2 minor (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-05-01 07:01 UTC by Michael Rommel
Modified: 2009-01-29 09:46 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rommel 2006-05-01 07:01:37 UTC
Hi folks,

when upgrading, the changed value for the user gets used only
in the preinstall scriptlet, not in the postinstall scriptlet.

The offending line is:

# Now that everything is installed, make sure the permissions are right
chown -R slimserver.slimserver /usr/local/slimserver

It should use the value in /etc/sysconfig/slimserver.

Output:

Preparing...                ########################################### [100%]
   1:slimserver             warning: user slimserver does not exist - using root
warning: group slimserver does not exist - using root
########################################### [100%]
chown: `slimserver.slimserver': invalid user
Point your web browser to http://blackbird.layer-7.net:9000/ to configure your server.

Additionally it would be nice to be able to set the group
as well, but that's definitely very low priority.

Cheers,

  Micha.
Comment 1 Blackketter Dean 2006-06-20 11:34:12 UTC
Dan, is this fixed?
Comment 2 Chris Owens 2006-06-23 14:49:06 UTC
Dan says this one has been fixed.
Comment 3 Dan Sully 2006-06-23 14:51:48 UTC
Actually, I didn't - it needs to be, but is low priority.
Comment 4 Dan Sully 2006-07-23 17:04:43 UTC
Fixed in change 8590