Merge pull request 'fix' (#5) from dev into master

Reviewed-on: https://git.pooper.social/verita84/picluster/pulls/5
This commit is contained in:
verita84 2022-08-15 16:22:33 +00:00
commit 68d24b87d6

View File

@ -408,7 +408,7 @@ function systemd(data) {
}
});
} else if (unit_file.indexOf('podman run') > -1) {
end_line = 'ExecStart=/bin/sh -c \"' + req.body.command + ';exit 0;\"';
end_line = 'ExecStart=/bin/sh -c \"' + data + ';exit 0;\"';
fs.appendFile('/etc/systemd/system/picluster-' + name + '.service', end_line + '\n', err => {
if (err) {
console.log(err);