How to call a direct admin script?

juliusbarra

Verified User
Joined
Apr 4, 2008
Messages
20
Hello,

I read many threads about scripts inside Directadmin, but I don't know how to call them.

For example, I wanted to change a user name and want to call

change_username.sh

I now thiis file is in /usr/local/directadmin/scripts

but...

Where do I have to call that file? What is the exact command?

Thanks
Julius
 
Code:
cd /usr/local/directadmin/scripts
./change_username.sh old_username new_username

Good luck! :)
 
Thanks.

It changed the user name, but it messed up the mysql database too.
I had to rename the user back and move the database from a directory to another one.

Julius.
 
Obviously if you change the username then the database names change and you have to change the database names in the scripts that are access those databases. The change_username.sh script cannot possibly know which scripts need to be edited.
 
I changed the database name and user name in the config file of my script.

The issue was that the database was moved in a subdirectory of the same db directory. I had to move it up.

I tried one more time and now it worked.

Thanks.
 
Back
Top