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(console): handle missing root user in password reset command
Andras Bacsaicef45960111e
diff --git a/app/Console/Commands/RootResetPassword.php b/app/Console/Commands/RootResetPassword.phpindex 8d440ebd70..436363d061 100644--- a/app/Console/Commands/RootResetPassword.php+++ b/app/Console/Commands/RootResetPassword.php@@ -40,6 +40,11 @@ class RootResetPassword extends Command$this->info('Updating root password...');try {$user = User::find(0);+ if (! $user) {+ $this->error('Root user not found.');++ return;+ }$user->update(['password' => Hash::make($password)]);$this->info('Root password updated successfully.');} catch (\Exception $e) {diff --git a/other/nightly/install.sh b/other/nightly/install.shindex 944012f86a..38f1c39199 100755--- a/other/nightly/install.sh+++ b/other/nightly/install.sh@@ -481,7 +481,7 @@ if ! [ -x "$(command -v docker)" ]; thendnf install docker -y >/dev/null 2>&1DOCKER_CONFIG=${DOCKER_CONFIG:-/usr/local/lib/docker}mkdir -p $DOCKER_CONFIG/cli-plugins >/dev/null 2>&1- curl -sL https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o $DOCKER_CONFIG/cli-plugins/docker-compose >/dev/null 2>&1+ curl -sL "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o $DOCKER_CONFIG/cli-plugins/docker-compose >/dev/null 2>&1chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose >/dev/null 2>&1systemctl start docker >/dev/null 2>&1systemctl enable docker >/dev/null 2>&1diff --git a/scripts/install.sh b/scripts/install.shindex 676e66d8e1..4abe98dc78 100755--- a/scripts/install.sh+++ b/scripts/install.sh@@ -481,7 +481,7 @@ if ! [ -x "$(command -v docker)" ]; thendnf install docker -y >/dev/null 2>&1DOCKER_CONFIG=${DOCKER_CONFIG:-/usr/local/lib/docker}mkdir -p $DOCKER_CONFIG/cli-plugins >/dev/null 2>&1- curl -sL https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o $DOCKER_CONFIG/cli-plugins/docker-compose >/dev/null 2>&1+ curl -sL "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o $DOCKER_CONFIG/cli-plugins/docker-compose >/dev/null 2>&1chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose >/dev/null 2>&1systemctl start docker >/dev/null 2>&1systemctl enable docker >/dev/null 2>&1