mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] Do not attempt to postinstall if API is just unreachable
This commit is contained in:
parent
dcf7603d17
commit
c837195ae4
1 changed files with 3 additions and 1 deletions
|
@ -363,6 +363,8 @@ app = Sammy('#main', function (sam) {
|
|||
if (isInstalled) {
|
||||
domain = window.location.hostname;
|
||||
c.view('login', { 'domain': domain });
|
||||
} else if (typeof isInstalled === 'undefined') {
|
||||
setInterval(c.redirect('#/login'), 5000);
|
||||
} else {
|
||||
c.redirect('#/postinstall');
|
||||
}
|
||||
|
@ -407,7 +409,7 @@ app = Sammy('#main', function (sam) {
|
|||
sam.get('#/postinstall', function(c) {
|
||||
$('#masthead').hide();
|
||||
c.checkInstall(function(isInstalled) {
|
||||
if (isInstalled) {
|
||||
if (isInstalled || typeof isInstalled === 'undefined') {
|
||||
c.redirect('#/login');
|
||||
} else {
|
||||
c.view('postinstall/postinstall_1');
|
||||
|
|
Loading…
Add table
Reference in a new issue