Browse Source

Fixed "/" issue in domain

This will check and remove "/" if present in domain.
Fixed for https://github.com/rtCamp/easyengine/issues/52
old-stable
Manish Songirkar 12 years ago
parent
commit
019de938db
  1. 4
      usr/local/sbin/easyengine

4
usr/local/sbin/easyengine

@ -483,10 +483,10 @@ EESITENAME()
# Ask Users To Enter Domain Name # Ask Users To Enter Domain Name
read -p "Enter Domain Name: " SITENAMECHECK read -p "Enter Domain Name: " SITENAMECHECK
# Remove http:// https:// & www. # Remove http:// https:// & www.
DOMAIN=$(echo $SITENAMECHECK | tr 'A-Z' 'a-z' | sed "s'http://''" | sed "s'https://''" | sed "s'www.''") DOMAIN=$(echo $SITENAMECHECK | tr 'A-Z' 'a-z' | sed "s'http://''" | sed "s'https://''" | sed "s'www.''" | sed "s'/''")
else else
# Remove http:// https:// & www. # Remove http:// https:// & www.
DOMAIN=$(echo $SITENAMECHECK | tr 'A-Z' 'a-z' | sed "s'http://''" | sed "s'https://''" | sed "s'www.''") DOMAIN=$(echo $SITENAMECHECK | tr 'A-Z' 'a-z' | sed "s'http://''" | sed "s'https://''" | sed "s'www.''" | sed "s'/''")
fi fi
} }

Loading…
Cancel
Save