I have searched the forums for help, and found 1 helpthread. The thing i want is after i added a user, it deletes the Bash files since they have no ssh access, delete the public_ftp folder since i do not allow this for anyone etc. The script has to make use of $vars ofcourse. John pointed to use them like ${username} for example, but that doesnt work for me. What i have now is:
What i need is this to work. The other thing, i like to create a MySQL for this user right away. Is this possible with letting DA know this, so if it can be modified from out DA and the counter decreased with 1 automatically? So if 5 databases are allowed this will become 4?
Plugin
//edit:
Error with custom script: /usr/local/directadmin/scripts/custom/domain_create_post.sh
#!/bin/sh
rm -f /home/${username}/.shadow
rm -f /home/${username}/.bashrc
rm -f /home/${username}/.bash_profile
rm -f /home/${username}/.bash_logout
rm -rf /home/${username}/domains/${domain}/logs
rm -rf /home/${username}/domains/${domain}/private_html
rm -rf /home/${username}/domains/${domain}/public_ftp
rm -rf /home/${username}/domains/${domain}/stats
What i need is this to work. The other thing, i like to create a MySQL for this user right away. Is this possible with letting DA know this, so if it can be modified from out DA and the counter decreased with 1 automatically? So if 5 databases are allowed this will become 4?
Plugin
//edit:
Error with custom script: /usr/local/directadmin/scripts/custom/domain_create_post.sh