Skip to content

Commit 7a9378a

Browse files
committed
Merge pull request RoverWire#17 from mcneely/master
Fixed casing issue where rootDir wasn't being set to domain properly.
2 parents 7dacac7 + 9037b6d commit 7a9378a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

virtualhost.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ do
3333
done
3434

3535
if [ "$rootDir" == "" ]; then
36-
rootdir=${domain//./}
36+
rootDir=${domain//./}
3737
fi
3838

3939
### if root dir starts with '/', don't use /var/www as default starting point
@@ -60,7 +60,7 @@ if [ "$action" == 'create' ]
6060
### write test file in the new domain dir
6161
if ! echo "<?php echo phpinfo(); ?>" > $rootDir/phpinfo.php
6262
then
63-
echo $"ERROR: Not able to write in file $userDir/$rootdir/phpinfo.php. Please check permissions"
63+
echo $"ERROR: Not able to write in file $userDir/$rootDir/phpinfo.php. Please check permissions"
6464
exit;
6565
else
6666
echo $"Added content to $rootDir/phpinfo.php"

0 commit comments

Comments
 (0)