separate the provision status and cloudron status

This commit is contained in:
Girish Ramakrishnan
2023-08-10 18:45:27 +05:30
parent 98719aa942
commit 1cdd528b45
13 changed files with 93 additions and 75 deletions
+2 -2
View File
@@ -71,7 +71,7 @@ app.controller('SetupController', ['$scope', 'Client', function ($scope, Client)
return;
}
// if we are here from the ip first go to the real domain if already setup
// if we are here from https://ip/setup.html ,go to https://admin/setup.html
if (status.adminFqdn && status.adminFqdn !== window.location.hostname) {
window.location.href = 'https://' + status.adminFqdn + '/setup.html';
return;
@@ -98,7 +98,7 @@ app.controller('SetupController', ['$scope', 'Client', function ($scope, Client)
}
function init() {
Client.getStatus(function (error, status) {
Client.getProvisionStatus(function (error, status) {
if (error) return Client.initError(error, init);
redirectIfNeeded(status);