The web-application document-root for Debian-Apache is typically
/var/www/html/ but for Arch-Apache it's typically
I wrote a distro-agnostic LAMP-establishment script and I need it to test what is the distro-oriented document-root dir (based on the dir's existence) and the one that is
true is the one I would continue to work with till the end of the script.
I usually do
drt="/var/www/html" but I need to have the variable control flowed like in this pseudocode:
drt="/var/www/html XOR /srv/http"
Of course, only one of the two or more options is true, and that should base the XOR conditioning.
Is there a way to do so in Bash?