ajonate
Member
- Joined
- Jun 18, 2018
- Messages
- 125
- Reaction score
- 15
None of the IncrediblePBX installation shell scripts work with CentOS 7 because a bogus Linux policy kit (polkit) is installed early in the script, which breaks systemctl. With systemctl broken, services can't be started or stopped on Centos 7. This isn't an issue with CentOS 6 because the "service" command isn't broken with polkit. The fix is to uninstall polkit sometime after the yum groupinstall runs, using this command:
yum -y remove polkit
For example, in the IncrediblePBX13-12R.sh file, add that command sometime after the preliminary yum installs. Most likely polkit comes from the groupinstall in line 213 in the following image.
http://entomy.com/polkit.jpg
Line 217 was left blank in the original file, so that's where I added the yum remove command, which you can see highlighted in the image. Save the file and your install will run fine using this install recipe.
http://nerdvittles.com/?p=14208
I edited incrediblepbx-13-13-LEAN.tar.gz similarly and the install ran fine with these instructions.
http://nerdvittles.com/?p=23948
Unfortunately it's pretty clear that 13-13-LEAN will need a lot of work to be compatible with CentOS 7, since it kicked a lot of errors after the install. But 13-12.2 looks pretty good.
****Edited to Add****
It turns out that polkit is installed sometime after line 217, so the above fix is inaccurate. In a previous install I removed polkit in a second SSH window and it worked, but I'm not sure where the install was when it happened.
I'm running it again at line 344 to see if that fixes it.
Yes, it seemed to work fine to remove polkit at line 344, the line before:
#install Asterisk packages
But I confirmed that polkit is installed in line 213. Maybe it's installed twice, or maybe I made a syntax error in my earlier edit. I'm not sure.
yum -y remove polkit
For example, in the IncrediblePBX13-12R.sh file, add that command sometime after the preliminary yum installs. Most likely polkit comes from the groupinstall in line 213 in the following image.
http://entomy.com/polkit.jpg
Line 217 was left blank in the original file, so that's where I added the yum remove command, which you can see highlighted in the image. Save the file and your install will run fine using this install recipe.
http://nerdvittles.com/?p=14208
I edited incrediblepbx-13-13-LEAN.tar.gz similarly and the install ran fine with these instructions.
http://nerdvittles.com/?p=23948
Unfortunately it's pretty clear that 13-13-LEAN will need a lot of work to be compatible with CentOS 7, since it kicked a lot of errors after the install. But 13-12.2 looks pretty good.
****Edited to Add****
It turns out that polkit is installed sometime after line 217, so the above fix is inaccurate. In a previous install I removed polkit in a second SSH window and it worked, but I'm not sure where the install was when it happened.
I'm running it again at line 344 to see if that fixes it.
Yes, it seemed to work fine to remove polkit at line 344, the line before:
#install Asterisk packages
But I confirmed that polkit is installed in line 213. Maybe it's installed twice, or maybe I made a syntax error in my earlier edit. I'm not sure.
Last edited: