Copy PHPSelector settings within a cPanel account transfer
Currently when you transfer accounts between cPanel servers, the PHP selector settings do not automatically copy when a cPanel account is transferred to a different server. It would be helpful if a copy of the settings could be located within the user home directory so that it automatically copies with the account.
Perhaps if PHP selector is installed, have it scan account transfers for the config file in the users home directory and if it exists apply the settings on the new server. Maybe as a post-hook on the transfer tool.
Would help make account transfers as seamless as possible.
Ferenc Csurgai commented
Try to put this line into /scripts/postrestoreacct :
/usr/bin/selectorctl --interpreter=php --set-user-current=$( grep "^php[ ]*=[ ]*" /home/$1/.cl.selector/defaults.cfg | tr -d ' ' | cut -d= -f2 ) --user=$1