This commit is contained in:
teddys48
2025-10-08 16:24:19 +07:00
parent d1b28f6486
commit cf5676a674

View File

@@ -44,9 +44,7 @@ cron.schedule(
);
cron.schedule("* * * * *", async () => {
exec(
'bash /home/script/script.sh',
(error, stdout, stderr) => {
exec("bash /home/script/script.sh", (error, stdout, stderr) => {
if (error) {
console.error(`Gagal menjalankan script: ${error.message}`);
return;
@@ -58,7 +56,7 @@ cron.schedule("* * * * *", async () => {
}
console.log(`Output: ${stdout}`);
}
});
});
app.use((req, res) => {