Fixes to service configuration

restart service does not rebuild automatically, we should add a route
for that. we need to figure where to scale services etc if we randomly
create containers like that.
This commit is contained in:
Girish Ramakrishnan
2021-01-21 12:53:38 -08:00
parent 47a598a494
commit 9f9575f46a
11 changed files with 200 additions and 190 deletions
+2 -2
View File
@@ -572,10 +572,10 @@ function authenticateSftp(req, res, next) {
}
function loadSftpConfig(req, res, next) {
services.getServiceConfig('sftp', function (error, service, servicesConfig) {
services.getServiceConfig('sftp', function (error, serviceConfig) {
if (error) return next(new ldap.OperationsError(error.toString()));
req.requireAdmin = servicesConfig['sftp'].requireAdmin;
req.requireAdmin = serviceConfig.requireAdmin;
next();
});