Issue :

How can I run a ‘pkgacct’ for all the accounts on the server in one go?

Solution:

Here’s a simple script to package all the accounts on your server :

#!/bin/bash
IFS=”$”

/bin/ls — /var/cpanel/users | /bin/grep -v “.|root|mysql|nobody|cpanel” | while read CPUSER; do
/scripts/pkgacct “${CPUSER}”
done


Shares
Contact Us On WhatsApp