always show upgrade on next channel
This commit is contained in:
parent
1dc3c77bc9
commit
bc89483d47
@ -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()
|
||||
{
|
||||
|
@ -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."
|
||||
|
Loading…
Reference in New Issue
Block a user