Looks like the current install routine in the CentOS 6 x64 rpm is a complete dogs breakfast.
I have asked before that the spec file be fixed to cope with the selinux status, and it now looks like the RPM is barfing when it tries to restart systemd and doesn’t bother to check whether it is installed in the upgrade script.
When I tried to do an update today I got the following errors. This is just plain amateurish - did the devs actually test this ?
CentOS 6 does not have systemd installed (thank heavens). This is simple scripting stuff for kids and I seriously expect better from so called professional developers, especially when I PAY for a product.
[root@plex-server plex]# rpm -Uvh plexmediaserver-1.0.3.2461-35f0caa.x86_64.rpm
Preparing… ########################################### [100%]
Stopping PlexMediaServer: [ OK ]
Stopped PlexMediaServer[ OK ]
1:plexmediaserver ########################################### [100%]
/var/tmp/rpm-tmp.d0CRmD: line 21: systemctl: command not found
/var/tmp/rpm-tmp.d0CRmD: line 22: systemctl: command not found
/var/tmp/rpm-tmp.d0CRmD: line 26: systemctl: command not found
/usr/lib/plexmediaserver/MigratePlexServerConfig.sh: line 349: systemctl: command not found
/usr/lib/plexmediaserver/MigratePlexServerConfig.sh: line 350: systemctl: command not found
semodule: SELinux policy is not managed or store cannot be accessed.
warning: %post(plexmediaserver-1.0.3.2461-35f0caa.x86_64) scriptlet failed, exit status 1
First error is due to you not bothering to do a check on the SElinux status.
Second is you blindly assume that systemd is installed in /usr/lib/plexmediaserver/MigratePlexServerConfig.sh
348 # Reload systemctl config
349 systemctl -q disable plexmediaserver.service
350 systemctl -q enable plexmediaserver.service
You even bother to check for systemd here
139 # We are done with the user file, move it out of the way (abandon in place) if on systemd based systems
140 if [ -f /proc/1/comm ] && [ “cat /proc/1/comm
” = “systemd” ]; then
But then ignore your own checks… That is just awful.
I work a lot on a ‘simple to use’ community distro and would recommend people installing plex, but I can’t when the RPMs are broken like this. We have a reputation that things ‘just work’ and we’ll just get a flood of complaints that it is broken. I can write better spec files and scripts than this and I am not a professional dev.
Can someone PLEASE have a look at this and get it fixed. It’s a few lines of bash code in the spec file and upgrade script. It is not rocket science.
Rgds
John