Merge pull request 'fix' (#5) from dev into master
Reviewed-on: https://git.pooper.social/verita84/picluster/pulls/5
This commit is contained in:
commit
68d24b87d6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user