fix
This commit is contained in:
parent
d27c305221
commit
92df40993a
@ -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