hello,
I'm looking for programmer can write two small scripts for me.
one script can make DA calculate the usage of my second harddrive.
the other script can run once awhile change back the files on /home from uid Apache back to the users uid.
please email me with quote or PM me. thank you. [email protected]
I'm looking for programmer can write two small scripts for me.
one script can make DA calculate the usage of my second harddrive.
It would be possible to flip the directadmin.conf setting for the "quota_partition" back and forth between /home and /home2, and re-run the quota on the new users.
Eg:
quota_partition=/home
let the "action=tally&value=all" run it's normal course. (see /etc/cron.d/directadmin_cron). With that, /home2 user will have incorrect usage as it's not checked.
next step (about 2 hours later), change quota_partition=/home2 in the directadmin.conf
run:
echo "action=tally&value=newreseller&type=reseller" >> /usr/local/directadmin/data/task.queue
Where newreseller is the reseller who owns all of the user accounts on /home2.
A few hours after that, restore quota_partition back to /home for the next days tally and general usage.
the other script can run once awhile change back the files on /home from uid Apache back to the users uid.
please email me with quote or PM me. thank you. [email protected]