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