New scripts

Hmm, that's not what I meant. The situation is that I have one reseller account (my own) and within that reseller account I have several user accounts, all with several domains, and I would like to 'merge' all those user accounts to one user account. This all should happen within that (one and the same) reseller account.

As far as I'm understanding right now, I can use the move_domains script, cause there is no change of reseller, though I really need to know if all FTP-, e-mail- accounts and all other settings (forwards, site redirects etc.) are also moved and so that all passwords of all accounts stay the same. Is that the case?

Thanks and sorry for the misunderstanding.
 
I have to move 4 domain (accounts) to the admin account. When i use the script in this topic, the e-mail boxes also moved to the admin account?
 
[: !=: unexpected operator

i have this on the above script.
i am running freebsd. (6.3) but it does work and it does do the "if" statement that is related, just wonder why i get this? shell related?
 
no you need to put quotes around the things in the test statements.

Code:
[ "something" = "another" ]; then

instead of

Code:
[ something = another ]; then
 
When using user_to_reseller.sh it does not put an ip in the user's ip.list file so therefore the reseller cannot add any users until this is done.
 
What IP is the script supposed to put in the ip.list? ;)

If we get a consensus on adding the server IP, I can add it to the script, but that may not always be what the admin wants.

adding a 2nd option to the command-line is also an option (the ip)

John
 
When the script is run it would be good to at least notify the admin running the script that it needs to be done. Better that the script notifies the admin rather than the reseller complaining that he cannot add a user. It doesn't look very professional.

Which ip? How about the one that the user is currently assigned? The user has already been assigned an ip whether its a unique ip or the server shared ip.

The only time I can think of that it would be a problem is if the user has been assigned an ip that is used for SSL.

Whatever is decided the script, not the customer, should remind the admin that some decisions have to be made manually.
 
Agree Floyd,

What is the solution for this issue. Because is have succesfully upgrade users to resellers. Many thanks for that script. Only finishing it. When i add an IP throught the IP management to the reseller. The server write it to a IP.list in the scripts directory.
must i add the IP to another IP list on the server to make it possible to choose an IP from the create user menu ?

**/ Edit **

Solved this issue.
When swap IP adresses on admin level for reseller, the IP assigned to the reseller which was formally a user is added.
 
Last edited:
reseller_to_user.sh is done too :) Installation is the same, just change user_to_reseller.sh with reseller_to_user.sh :) Usage is:
Code:
cd /usr/local/directadmin/scripts
./reseller_to_user.sh <user> <reseller>

Sorry guys .. but with this. I have a reseller "reseller1" .. I want this to be purely a user account and they have no accounts under them, just their own domains ..

You sate /reseller_to_user.sh <user> <reseller>

What do I put in the user and reseller fields?

Brett.
 
never used the script so someone should give more exact instruction but i think is the user u want to move and the reseller you want to assign the user to... example

./reseller_to_user.sh testuser admin
 
There is a typo in move_domain.sh
Line 88, it should be TEMP
and it wouldn't hurt to add this as well just below.
TEMP="$PERL -pi -e 's/${OLD_USER}/${NEW_USER}/' ${DMNDIR}/filter"
eval $TEMP;

Also, the file permissions are wrong or missing.
 
Last edited:
Back
Top