When I disable modsecparse I get the following error:
Disable: Command not added to /scripts/posteasyapache as it is not a shell script
This of course means that modsecparse resumes running after easyapache has been run. Is there some way to avoid this?
Thanks!
Error message when disabling modsecparse.pl
-
- Moderator
- Posts: 1524
- Joined: 01 Oct 2008, 09:24
Re: Error message when disabling modsecparse.pl
It means that the first line in that file is not a bash/sh declaration. I would guess you probably have an empty file - if so, if you remove it then the script will recreate it correctly.
Re: Error message when disabling modsecparse.pl
That does not appear to be the reason - this is the current content of that file:
As far as I can tell the above is a valid declaration?
(<remove> inserted above to get around url restrictions on this forum)
Code: Select all
#!/bin/bash
/usr/share/cagefs/cpanel/cagefs_posteasyapache_hook<remove>.sh #CageFS Version 2.0. Required for suphp recompilation
(<remove> inserted above to get around url restrictions on this forum)
-
- Moderator
- Posts: 1524
- Joined: 01 Oct 2008, 09:24
Re: Error message when disabling modsecparse.pl
Thanks. That does appear to be a bug which we'll look into.
-
- Moderator
- Posts: 1524
- Joined: 01 Oct 2008, 09:24
Re: Error message when disabling modsecparse.pl
cmc v1.11 should hopefully fix this now:
http://blog.configserver.com/
http://blog.configserver.com/
Re: Error message when disabling modsecparse.pl
Wow, that was quick! There is still a small issue, after enabling and disabling the script looks like this:
Code: Select all
#!/bin/bash
/usr/share/cagefs/cpanel/cagefs_posteasyapache_hook.<remove>sh #CageFS Version 2.0. Required for suphp recompilation
#!/bin/bash
/usr/share/cagefs/cpanel/cagefs_posteasyapache_hook.<remove>sh #CageFS Version 2.0. Required for suphp recompilation
if [ -e '/etc/cron.hourly/modsecparse.<remove>pl' ]; then /bin/mv -f /etc/cron.hourly/modsecparse.<remove>pl /root/modsecparse.<remove>pl; fi
-
- Moderator
- Posts: 1524
- Joined: 01 Oct 2008, 09:24
Re: Error message when disabling modsecparse.pl
Rats. We've released v1.12 which should stop that from happening. You will need to remove the duplicate lines from /scripts/posteasyapache manually though.
Re: Error message when disabling modsecparse.pl
Excellent, works great now. Thank you very much for your assistance!
Tom
Tom