An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix(ssl): do not remove SSL directory
peaklabs-deva3c4f86e809e
diff --git a/app/Actions/Database/StartMariadb.php b/app/Actions/Database/StartMariadb.phpindex dd6f2d7359..cd001ae454 100644--- a/app/Actions/Database/StartMariadb.php+++ b/app/Actions/Database/StartMariadb.php@@ -56,7 +56,6 @@ class StartMariadb});} else {$this->commands[] = "echo 'Setting up SSL for this database.'";- $this->commands[] = "rm -rf $this->configuration_dir/ssl";$this->commands[] = "mkdir -p $this->configuration_dir/ssl";$server = $this->database->destination->server;$caCert = SslCertificate::where('server_id', $server->id)->firstOrFail();@@ -188,7 +187,7 @@ class StartMariadb$this->commands[] = "docker compose -f $this->configuration_dir/docker-compose.yml up -d";$this->commands[] = "echo 'Database started.'";if ($this->database->enable_ssl) {- $this->commands[] = executeInDocker($this->database->uuid, 'chown mariadb:mariadb /etc/mysql/certs/server.crt /etc/mysql/certs/server.key');+ $this->commands[] = executeInDocker($this->database->uuid, "chown {$this->database->mariadb_user}:{$this->database->mariadb_user} /etc/mysql/certs/server.crt /etc/mysql/certs/server.key");}return remote_process($this->commands, $database->destination->server, callEventOnFinish: 'DatabaseStatusChanged');diff --git a/app/Actions/Database/StartMysql.php b/app/Actions/Database/StartMysql.phpindex 88fcfe9119..b7b18361ef 100644--- a/app/Actions/Database/StartMysql.php+++ b/app/Actions/Database/StartMysql.php@@ -56,7 +56,6 @@ class StartMysql});} else {$this->commands[] = "echo 'Setting up SSL for this database.'";- $this->commands[] = "rm -rf $this->configuration_dir/ssl";$this->commands[] = "mkdir -p $this->configuration_dir/ssl";$server = $this->database->destination->server;$caCert = SslCertificate::where('server_id', $server->id)->firstOrFail();diff --git a/app/Actions/Database/StartPostgresql.php b/app/Actions/Database/StartPostgresql.phpindex 9ce953491a..b582136a3c 100644--- a/app/Actions/Database/StartPostgresql.php+++ b/app/Actions/Database/StartPostgresql.php@@ -61,7 +61,6 @@ class StartPostgresql});} else {$this->commands[] = "echo 'Setting up SSL for this database.'";- $this->commands[] = "rm -rf $this->configuration_dir/ssl";$this->commands[] = "mkdir -p $this->configuration_dir/ssl";$server = $this->database->destination->server;