Domain Check improved

improved domain check for special characters to avoid DB errors creation.
This commit is contained in:
Cristhian Martínez Ochoa 2018-05-09 16:22:46 -06:00
parent 8d2032f506
commit e63db8869d
2 changed files with 1 additions and 2 deletions

View file

@ -90,8 +90,7 @@ dbword_check() {
wpinstall() {
local dom=${domain//./_}
local dom=${dom//-/_}
local dom=$(echo $domain | sed "s/[^0-9A-Za-z]/_/g")
[[ $domain == "-mysql" ]] && dom="Webinoly_$(pwgen -s -1)"
local ROOT_PASS=$( echo $(conf_read mysql-root) | openssl enc -d -a -salt )
local AUTOGENPASS_WPDB=`pwgen -s -1`

Binary file not shown.