Shell script for packaging all accounts
admin | Oct 19, 2009 | Comments 0
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
Filed Under: Quick fixes • Technical
About the Author: InstaCarma is a provider of Enterprise Class Solutions for the Hosting Industry

1800 810 6547