user_create_post.sh

dannygoh

Verified User
Joined
Feb 9, 2004
Messages
368
Location
Malaysia
i created user_create_post.sh in /usr/local/directadmin/data/templates/custom directory.

in my user_create_post.sh, i have echo "action=tally&value=all" >> /usr/local/directadmin/data/task.queue

after i created a users, i want to tally my DA. Is my command right?
 
but i check the system.log but no tally on the log after the user created. i have wait for few minute through.
 
Hello,

Try this (you're probably missing the "shebang" line):
Code:
[b]#!/bin/sh[/b]
echo "action=tally&value=all" >> /usr/local/directadmin/data/task.queue
exit 0;

then:
chmod 755 user_create_post.sh

John
 
DirectAdmin Support said:
Hello,

Try this (you're probably missing the "shebang" line):
Code:
[b]#!/bin/sh[/b]
echo "action=tally&value=all" >> /usr/local/directadmin/data/task.queue
exit 0;

then:
chmod 755 user_create_post.sh

John

i have follow all the instruction but still not working. i have wait for the next minute for DA to run the data queue.

system.log
2005:01:11-00:36:19: User testing is being created by reseller.
2005:01:11-00:37:01: httpd restarted
2005:01:11-00:37:01: named reloaded
2005:01:11-00:37:01: proftpd rereaded
2005:01:11-00:37:01: sshd reloaded

file list
[root@ns1 custom]# pwd
/usr/local/directadmin/data/templates/custom
[root@ns1 custom]# ll
-rwxr-xr-x 1 diradmin diradmin 90 Jan 11 00:35 user_create_post.sh

file detail
[root@ns1 custom]# cat user_create_post.sh
#!/bin/sh
echo "action=tally&value=all" >> /usr/local/directadmin/data/task.queue
exit 0;
 
Hello,

It's a custom script, not a custom template:

/usr/local/directadmin/scripts/custom/user_create_post.sh

;)

John
 
can this file be used to stop Directadmin failing when adding a domain that already exists in named.

Example.

domain fgh.com exists already in named as the server runs as dns slave for fgh.com

I try to add account which uses fgh.com.

Directadmin shows add account failure because domain fgh.com record file already exists and isnt readable because in slave format.

I need a way to remove that final check and proceed.
 
Hello,

Well.. it's risky, but you could domain_create_pre.sh (or user_create_pre.sh) .. use it to remove the zone from your named.conf. Note that DA might stomp over the /var/named/domain.com.db file too.

John
 
Hi john

that would remove the slave zone tho right?, so there is no way to bypass the need for the zone file to exist?
 
Back
Top