Compare commits

...

3 Commits
2.2.0 ... 2.2.1

Author SHA1 Message Date
705d029a63 bump version to 2.2.1 (#474) 2025-02-07 18:24:02 +01:00
7be63384d4 fix html especial characters in commands (#467) 2025-02-06 20:34:01 +01:00
dd78c86a60 Fix missing ip for AWS and DO (#461)
* Fix missing ip for AWS and DO

* Fix Vultr
2025-02-05 21:26:09 +01:00
8 changed files with 19 additions and 4 deletions

View File

@ -86,6 +86,9 @@ private function install(Server $server): void
while ($maxWait > 0) {
sleep(10);
$maxWait -= 10;
if (! $server->provider()->isRunning()) {
continue;
}
try {
$server->ssh()->connect();
break;

View File

@ -149,6 +149,10 @@ public function isRunning(): bool
$this->server->save();
}
if (! $this->server->ip) {
return false;
}
if (isset($result['Reservations'][0]['Instances'][0]['State']) && isset($result['Reservations'][0]['Instances'][0]['State']['Name'])) {
$status = $result['Reservations'][0]['Instances'][0]['State']['Name'];
if ($status == 'running') {

View File

@ -176,6 +176,10 @@ public function isRunning(): bool
$this->server->save();
}
if (! $this->server->ip) {
return false;
}
return $status->json()['droplet']['status'] == 'active';
}

View File

@ -171,6 +171,10 @@ public function isRunning(): bool
$this->server->save();
}
if (! $this->server->ip) {
return false;
}
return $status->json()['instance']['status'] == 'active';
}

View File

@ -211,7 +211,7 @@
// 'ExampleClass' => App\Example\ExampleClass::class,
])->toArray(),
'version' => '2.1.0',
'version' => '2.2.1',
'demo' => env('APP_DEMO', false),
];

View File

@ -1,4 +1,4 @@
if ! echo '{{ $cron }}' | sudo -u {{ $user }} crontab -; then
if ! echo '{!! $cron !!}' | sudo -u {{ $user }} crontab -; then
echo 'VITO_SSH_ERROR' && exit 1
fi

View File

@ -1,3 +1,3 @@
if ! echo '{{ $key }}' | sudo tee -a ~/.ssh/authorized_keys; then
if ! echo '{!! $key !!}' | sudo tee -a ~/.ssh/authorized_keys; then
echo 'VITO_SSH_ERROR' && exit 1
fi

View File

@ -1,4 +1,4 @@
if ! echo '{{ $redirects }}' | sudo tee /etc/nginx/conf.d/{{ $domain }}_redirects; then
if ! echo '{!! $redirects !!}' | sudo tee /etc/nginx/conf.d/{{ $domain }}_redirects; then
echo 'VITO_SSH_ERROR' && exit 1
fi