Skip to content

Commit

Permalink
third-party services were not getting shut down properly
Browse files Browse the repository at this point in the history
Signed-off-by: John Crispin <john@phrozen.org>
  • Loading branch information
blogic committed May 24, 2022
1 parent 84cb225 commit db15ed7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion renderer/templates/toplevel.uc
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,15 @@
iterate_interfaces("upstream");
iterate_interfaces("downstream");

for (let name, config in state.third_party)
let fs = require('fs');
for (let name in fs.glob('/usr/share/ucentral/templates/third-party/*.uc')) {
name = split(fs.basename(name), '.')[0];
let config = state.third_party ? state.third_party[name] : {};
tryinclude('third-party/' + name + '.uc', {
location: '/third-party/' + name,
[replace(name, '-', '_')]: config
});
}

if (state.config_raw)
include("config_raw.uc", { location: '/config_raw', config_raw: state.config_raw });
Expand Down

0 comments on commit db15ed7

Please sign in to comment.