From 695ecbe8e83db020df3d541986b081f97ab35aa1 Mon Sep 17 00:00:00 2001 From: I Luk Kim Date: Thu, 30 Mar 2023 22:34:59 +0900 Subject: [PATCH] added cron.sh --- bingauto2.js | 2 +- cron.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 cron.sh diff --git a/bingauto2.js b/bingauto2.js index 91fb068..d842b8f 100755 --- a/bingauto2.js +++ b/bingauto2.js @@ -50,7 +50,7 @@ module.exports = class BingAuto2 { let option = { headless: this.headless, userDataDir: tmp_dir, - args: ["--proxy-server='direct://'", '--proxy-bypass-list=*', '--disable-site-isolation-trials'] + args: ["--proxy-server='direct://'", '--proxy-bypass-list=*', '--disable-site-isolation-trials', '--no-sandbox'] }; this.browser = await puppeteer.launch(option); diff --git a/cron.sh b/cron.sh new file mode 100755 index 0000000..eb29070 --- /dev/null +++ b/cron.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +cd /root/bingauto2 +node ./index.js &>> cron.out \ No newline at end of file