Tool that will run custom scripts for base features

Version 1.19.6

Feature
Finished

This feature will allow server administartors to add customized scripts for various tasks such as creating/removing Users and Domains. If the script doesn't exist, it won't be run. If it exists, it will be. Scripts will be located in /usr/local/directadmin/scripts/custom/* and will be listed in a README file in the directory. README is as follows: ############################################# The contents of this file will map what script names will be associated with what commands. ########################################## domain_create_pre.sh - Runs BEFORE a domain is created domain_create_post.sh - Runs AFTER a domain is created domain_destroy_pre.sh - Runs BEFORE a domain is destroyed domain_destroy_post.sh - Runs AFTER a domain is destroyed environmental variables: bandwidth=# or unlimited cgi=ON or OFF defaultdomain=yes or no domain=domain.com ssl=ON or OFF suspended=yes or no username=ownerofdomain ########################################## user_create_pre.sh - Runs BEFORE the user is created, but after it's confirmed. If this script returns anything but zero, the creation is aborted user_create_post.sh - Runs AFTER the user is created. user_destroy_pre.sh - Runs BEFORE the use is destroyed. If this script returns anything but zero, the destruction is aborted. user_destroy_post.sh - Runs AFTER the user is destroyed. environmental variables: account=ON or OFF aftp=ON or OFF bandwidth=# or unlimited cgi=ON or OFF creator=username dnscontrol=ON or OFF docsroot=./data/skins/default (relative path to document root) domain=domain.com domainptr=# or unlimited email=email@domain.com ftp=# or unlimited ip=1.2.3.4 mysql=# or unlimited nemailf=# or unlimited nemailml=# or unlimited nemailr=# or unlimited nemails=# or unlimited ns1=ns1.domain.com ns2=ns2.domain.com nsubdomains=# or unlimited package=packagename passwd=the password entered quota=# or unlimited sentwarning=no (refers to resource usage limits notification emails) skin=default (name of skin) ssh=ON or OFF ssl=ON or OFF suspend_at_limit=ON or OFF suspended=no username=username usertype=user or reseller or admin vdomains=# or unlimited zoom=100 (completely useless value token for the css zoom feature)

Interested to try DirectAdmin? Get a 30-day Free Trial!