From a3d3a3d626683fca8701162ec6f892d28c7841d8 Mon Sep 17 00:00:00 2001 From: hosh1 Date: Sun, 10 Aug 2025 03:50:23 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=91=D0=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/install.sh b/install.sh index d5101d5..7832e33 100644 --- a/install.sh +++ b/install.sh @@ -295,15 +295,23 @@ if [ -f "$PHP_INI_PATH" ]; then sed -i 's/;*log_errors = .*/log_errors = On/' "$PHP_INI_PATH" fi +if [ "$DISTRO_FAMILY" = "debian" ]; then + DB_SOCKET="/var/run/mysqld/mysqld.sock" +else + DB_SOCKET="/var/lib/mysql/mysql.sock" +fi + cat > "$WEBROOT/db_config.php" << EOF EOF