cd /usr/local/directadmin/scripts
wget http://www.servermonkeys.com/projects/els/directadmin/user_to_reseller.sh
chmod 700 user_to_reseller.sh
chown diradmin:diradmin user_to_reseller.sh
cd /usr/local/directadmin/scripts
./user_to_reseller.sh <user>
cd /usr/local/directadmin/scripts
./reseller_to_user.sh <user> <reseller>
[root@tws1 scripts]# chown diradmin:diradmin user_to_reseller.sh
[root@tws1 scripts]# ls -al user_to_reseller.sh
-rwx------ 1 diradmin diradmin 5303 Jul 4 21:37 user_to_reseller.sh
[root@tws1 scripts]# ./user_to_reseller.sh stambomen
Re-configuring user directory /home/stambomen.
Re-configuring DirectAdmin files.
./user_to_reseller.sh: line 91: syntax error near unexpected token `newline'
./user_to_reseller.sh: line 91: ` echo -n "" > '
[root@tws1 scripts]#
is there any way i can convert the reseller back to user?
smtalk said: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>
HanSieT said:Now the user is stated as Reseller and thats not what i want
smtalk said:We have a new script called user_to_reseller.sh now (used to convert user to reseller)
cd /usr/local/directadmin/scripts
rm -f user_to_reseller.sh
wget http://www.servermonkeys.com/projects/els/directadmin/user_to_reseller.sh[FONT=monospace]
[/FONT]chmod 700 user_to_reseller.sh[FONT=monospace]
[/FONT]chown diradmin:diradmin user_to_reseller.sh
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
Hi skruf, thank you for good words The file has been updated (added one change for /etc/virtual/domainowners file). For httpd.conf changes - you just needed to run:
Code:echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
I've added that to the script too So, it's perfect now, isn't it?