Browse Source

Fix site folder creation

Nathaniel van Diepen 9 years ago
parent
commit
dbbba18b23
1 changed files with 1 additions and 1 deletions
  1. 1 1
      configshell

+ 1 - 1
configshell

@@ -27,11 +27,11 @@ addsite(){
 		echo "Site already exists";
 	else
 		if [[ "$3" != "" ]];then
-			mkdir -p "$3";
 			path="$3";
 		else
 			path="/var/www/$1";
 		fi;
+		mkdir -p "$path";
 		echo "<VirtualHost *:80>
 		ServerName $2
 		DocumentRoot $path