From 1b432f69ebd896c8875e58b8b15f20b4f63cf6fa Mon Sep 17 00:00:00 2001 From: Matteo Bini Date: Fri, 9 Sep 2022 17:20:16 +0200 Subject: [PATCH] Regex typo --- setup-wordpress | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup-wordpress b/setup-wordpress index 5e8d3a1..2dc16f1 100755 --- a/setup-wordpress +++ b/setup-wordpress @@ -42,7 +42,7 @@ printf \ }" > /etc/nginx/sites-enabled/"$webdomain" systemctl restart nginx -dbname="$(printf $webdomain | sed 's/\([a-z0-9_\-]\+\).[a-z]\+/\1/i')" +dbname="$(printf $webdomain | sed 's/\([a-z0-9_\-]\+\)\.[a-z]\+/\1/i')" dbpass="$(apg -a 1 -m 24 -x 64 -M cln -n 1)" printf \ "CREATE DATABASE wp_$dbname COLLATE utf8mb4_general_ci;