mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] CheckInstall
This commit is contained in:
parent
a7f9487965
commit
c45adca02f
1 changed files with 10 additions and 9 deletions
19
js/app.js
19
js/app.js
|
@ -222,17 +222,18 @@ app = Sammy('#main', function (sam) {
|
||||||
} else {
|
} else {
|
||||||
if (uri == '/postinstall') {
|
if (uri == '/postinstall') {
|
||||||
if (installing) {
|
if (installing) {
|
||||||
setInterval(function () {
|
checkInstall = setInterval(function () {
|
||||||
if (window.location.hostname === args.domain) {
|
c.checkInstall(function(isInstalled) {
|
||||||
document.location.href = 'https://'+ args.domain +'/yunohost/admin';
|
if (isInstalled) {
|
||||||
} else {
|
c.flash('success', y18n.t('installation_complete'));
|
||||||
c.checkInstall(function(isInstalled) {
|
clearInterval(checkInstall);
|
||||||
if (isInstalled) {
|
if (window.location.hostname === args.domain) {
|
||||||
c.flash('success', y18n.t('installation_complete'));
|
document.location.href = 'https://'+ args.domain +'/yunohost/admin';
|
||||||
|
} else {
|
||||||
c.redirect('#/login');
|
c.redirect('#/login');
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
}
|
});
|
||||||
}, 5000);
|
}, 5000);
|
||||||
} else {
|
} else {
|
||||||
c.flash('fail', y18n.t('error_occured'));
|
c.flash('fail', y18n.t('error_occured'));
|
||||||
|
|
Loading…
Add table
Reference in a new issue