always show upgrade on next channel

This commit is contained in:
Andras Bacsai 2023-06-23 13:22:29 +02:00
parent 1dc3c77bc9
commit bc89483d47
2 changed files with 10 additions and 0 deletions

View File

@ -3,6 +3,7 @@
namespace App\Http\Livewire;
use App\Actions\Server\UpdateCoolify;
use App\Models\InstanceSettings;
use Masmerise\Toaster\Toaster;
use Livewire\Component;
@ -20,6 +21,10 @@ public function checkUpdate()
if (isDev()) {
$this->isUpgradeAvailable = true;
}
$settings = InstanceSettings::get();
if ($settings->next_channel) {
$this->isUpgradeAvailable = true;
}
}
public function upgrade()
{

View File

@ -23,6 +23,11 @@ if [ $OS_TYPE != "ubuntu" ] && [ $OS_TYPE != "debian" ]; then
exit
fi
# Ovewrite LATEST_VERSION if user pass a version number
if [ "$1" != "" ]; then
LATEST_VERSION=$1
fi
echo -e "-------------"
echo -e "Welcome to Coolify v4 beta installer!"
echo -e "This script will install everything for you."