Docker setup is now working!!
This commit is contained in:
parent
62a5d4c3d6
commit
ad66fe3285
|
@ -3,6 +3,7 @@ version: '3.3'
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: mariadb:latest
|
image: mariadb:latest
|
||||||
|
command: --default-authentication-plugin=mysql_native_password
|
||||||
volumes:
|
volumes:
|
||||||
- db_data:/var/lib/mysql
|
- db_data:/var/lib/mysql
|
||||||
restart: always
|
restart: always
|
||||||
|
|
|
@ -162,7 +162,7 @@ class database{
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isOptionsEmpty(){
|
public function isOptionsEmpty(){
|
||||||
return empty($this->database->exec("SELECT * FROM `%PREFIX%_options`;", true));
|
return empty($this->exec("SELECT * FROM `%PREFIX%_options`;", true));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __construct(){
|
public function __construct(){
|
||||||
|
@ -170,7 +170,7 @@ class database{
|
||||||
define("DATABASE", "OK");
|
define("DATABASE", "OK");
|
||||||
}
|
}
|
||||||
$this->connect();
|
$this->connect();
|
||||||
if($this->isOptionsEmpty){
|
if($this->isOptionsEmpty()){
|
||||||
header('Location: install/install.php');
|
header('Location: install/install.php');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue