Solokron

Well-Known Member
Aug 8, 2003
852
2
168
Seattle
cPanel Access Level
DataCenter Provider
I have a problem with the tweak settings disable compilers being re-enabled for unprivileged users after upcps. Is there a command line besides the usual chmods to re-run this script after a upcp?
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
34
473
Go on, have a guess
upcp itself probably isn't enabling them, it's the OS vendor updates that will change the permissions if a package is updated.

You should be able to create /scripts/postupcp and add:

#!/bin/sh
/scripts/compilers off


then chmod 700 the script.
 

Solokron

Well-Known Member
Aug 8, 2003
852
2
168
Seattle
cPanel Access Level
DataCenter Provider
Simple enough. You're the best Chirpy!
 

MaraBlue

Well-Known Member
May 3, 2005
332
2
168
Carmichael, CA
cPanel Access Level
Root Administrator
upcp itself probably isn't enabling them, it's the OS vendor updates that will change the permissions if a package is updated.

You should be able to create /scripts/postupcp and add:

#!/bin/sh
/scripts/compilers off


then chmod 700 the script.
Thank you for that! I needed it for something else.