Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some extra standard public folder names #7

Open
peterboorsma opened this issue Oct 31, 2017 · 0 comments
Open

Add some extra standard public folder names #7

peterboorsma opened this issue Oct 31, 2017 · 0 comments

Comments

@peterboorsma
Copy link

Is it possible (sure it is) to add some extra 'public' folder names to the script? Namely 'DEFAULT', 'httpdocs' and 'private_html'.

if [[ $PUBLICFOLDER = "" ]] && [[ -d "$WD/public_html" ]] ; then
    PUBLICFOLDER="public_html"
elif [[ $PUBLICFOLDER = "" ]] && [[ -d "$WD/private_html" ]] ; then
    PUBLICFOLDER="private_html"
elif [[ $PUBLICFOLDER = "" ]] && [[ -d "$WD/html" ]] ; then
    PUBLICFOLDER="html"
elif [[ $PUBLICFOLDER = "" ]] && [[ -d "$WD/public" ]] ; then
    PUBLICFOLDER="public"
elif [[ $PUBLICFOLDER = "" ]] && [[ -d "$WD/httpdocs" ]] ; then
    PUBLICFOLDER="httpdocs"
elif [[ $PUBLICFOLDER = "" ]] && [[ -d "$WD/DEFAULT" ]] ; then
    PUBLICFOLDER="DEFAULT"
elif [[ $PUBLICFOLDER = "" ]] ; then
    echo ""
    echo "ERROR: Could not determine the PUBLICFOLDER. Please edit boltflow.sh, and set PUBLICFOLDER manually."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant