ServerTune

Browse by category

Search    |    Advanced search

HowTo :: re-build /etc/virtual/domains File

SSH to the server and edit the following:

Insert the following text:

#!/bin/sh
echo `hostname

					 		`;
for u in `ls /usr/local/directadmin/data/users`; do{
   for d in `cat /usr/local/directadmin/data/users/$u/domains.list`; do
{
	echo "$d"
		for p in `cat /usr/local/directadmin/data/users/$u/domains/$d.pointers 2>/dev/null | cut -d= -f1 2>/dev/null`; do
		{
	echo "$p"
		}
		done;
		}
	done;
	}
done;

Save the file and then run the following commands (in that order):

 
 
Add comment
 
Views: 1132
 
Votes: 0
 
Comments: 0
 

Other articles in this Category

RSS