mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 13:56:01 +01:00
port docker manager to ubuntu
This commit is contained in:
@@ -394,6 +394,7 @@ app.controller('servicesManager', function ($scope, $http) {
|
||||
|
||||
|
||||
function ListInitialDatas(response) {
|
||||
console.log(response.data)
|
||||
|
||||
if (response.data.status.litespeed) {
|
||||
$scope.olsStatus = "Running";
|
||||
@@ -409,8 +410,18 @@ app.controller('servicesManager', function ($scope, $http) {
|
||||
$scope.olsStop = false;
|
||||
}
|
||||
|
||||
// Update SQL stats
|
||||
if (response.data.status.docker) {
|
||||
$scope.dockerStatus = "Running";
|
||||
$scope.dockerStart = false;
|
||||
$scope.dockerStop = true;
|
||||
}
|
||||
else {
|
||||
$scope.dockerStatus = "Stopped";
|
||||
$scope.dockerStart = true;
|
||||
$scope.dockerStop = false;
|
||||
}
|
||||
|
||||
// Update SQL stats
|
||||
if (response.data.status.mysql) {
|
||||
$scope.sqlStatus = "Running";
|
||||
$scope.sqlStats = true;
|
||||
@@ -468,7 +479,7 @@ app.controller('servicesManager', function ($scope, $http) {
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
getServiceStatus();
|
||||
|
||||
$scope.serviceAction = function (serviceName, action) {
|
||||
|
||||
Reference in New Issue
Block a user