Linux Environment Security (LES) – need your help, please

copernic2006

Member
Dec 7, 2010
8
0
51
Hello,
I want to install Linux Environment Security on my server (Linux Environment Security | R-fx Networks)
For a good functioning with cpanel (during the automatic update of cpanel), it must be disabled before the update and reactivated once the update is complete,
I want to create two files:
1, /scripts/preupcp (to disable Linux Environment Security
Code:
#!/bin/sh
/usr/local/sbin/les -da
2, /scripts/postupcp (to reactivate Linux Environment Security)
Code:
#!/bin/sh
/usr/local/sbin/les -ea 1
Of course the two files have the necessary permissions****:
chmod 0700 /scripts/postupcp
chmod 0700 /scripts/preupcp

Do you think that this method is correct and work without any problem?
Thank you for your help.