mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] Redirect to login if postinstall has already been executed
This commit is contained in:
parent
d53f84c3d7
commit
350fac92cf
1 changed files with 7 additions and 1 deletions
|
@ -406,7 +406,13 @@ app = Sammy('#main', function (sam) {
|
||||||
|
|
||||||
sam.get('#/postinstall', function(c) {
|
sam.get('#/postinstall', function(c) {
|
||||||
$('#masthead').hide();
|
$('#masthead').hide();
|
||||||
c.view('postinstall/postinstall_1');
|
c.checkInstall(function(isInstalled) {
|
||||||
|
if (isInstalled) {
|
||||||
|
c.redirect('#/login');
|
||||||
|
} else {
|
||||||
|
c.view('postinstall/postinstall_1');
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
sam.get('#/postinstall/domain', function(c) {
|
sam.get('#/postinstall/domain', function(c) {
|
||||||
|
|
Loading…
Reference in a new issue