This commit is contained in:
Your Name 2022-08-15 10:22:06 -06:00
parent d27c305221
commit 92df40993a

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);