Skip to content

Commit

Permalink
Assume Y for the Rails/Symphony detection when in BATCH_MODE. Closes #42
Browse files Browse the repository at this point in the history
.
  • Loading branch information
pgib committed Aug 20, 2013
1 parent 5d4d151 commit 286ee7a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions virtualhost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -766,23 +766,25 @@ case $resp in

*)
if [ -d $DOC_ROOT_FOLDER_MATCH/public ]; then
/bin/echo -n " - Found a public folder suggesting a Rails/Merb/Rack project. Use as DocumentRoot? [y/N] "
/bin/echo -n " - Found a public folder suggesting a Rails/Rack project. Use as DocumentRoot? [Y/n] "
if [ -z "$BATCH_MODE" ]; then
read response
else
response="n"
response="Y"
echo $response
fi
if checkyesno ${response} ; then
FOLDER=$DOC_ROOT_FOLDER_MATCH/public
else
FOLDER=$DOC_ROOT_FOLDER_MATCH
fi
elif [ -d $DOC_ROOT_FOLDER_MATCH/web ]; then
/bin/echo -n " - Found a web folder suggesting a Symfony project. Use as DocumentRoot? [y/N] "
/bin/echo -n " - Found a web folder suggesting a Symfony project. Use as DocumentRoot? [Y/n] "
if [ -z "$BATCH_MODE" ]; then
read response
else
response="n"
response="Y"
echo $response
fi
if checkyesno ${response} ; then
FOLDER=$DOC_ROOT_FOLDER_MATCH/web
Expand Down

0 comments on commit 286ee7a

Please sign in to comment.