Explorar o código

Add pgsql option to use pgsql (#3299)

* Support pgsql

Co-authored-by: Stephen J Carnam <steveorevo@gmail.com>
Stephen J. Carnam %!s(int64=3) %!d(string=hai) anos
pai
achega
56d379dc7b
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      web/src/app/System/HestiaApp.php

+ 2 - 1
web/src/app/System/HestiaApp.php

@@ -197,6 +197,7 @@ class HestiaApp {
 		string $dbname,
 		string $dbuser,
 		string $dbpass,
+		string $dbtype = "mysql",
 		string $charset = "utf8mb4",
 	) {
 		$v_password = tempnam("/tmp", "hst");
@@ -207,7 +208,7 @@ class HestiaApp {
 			$dbname,
 			$dbuser,
 			$v_password,
-			"mysql",
+			$dbtype,
 			"localhost",
 			$charset,
 		]);