From aa5060850df58f5b525df256dea46f5ec966862a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20Fr=C3=B6hle?= Date: Wed, 15 Jan 2020 16:05:55 +0100 Subject: [PATCH] change content folder --- README.md | 2 ++ main.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a0999ee..b0856a3 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ go build . mv fbBot /usr/local/bin/ cp contrib/etc / +mkdir -p /etc/fbBot/content +chmod 755 /etc/fbBot/content systemctl daemon-reload systemctl enable fbBot.service systemctl start fbBot.service diff --git a/main.go b/main.go index d7ce595..8010d73 100644 --- a/main.go +++ b/main.go @@ -124,7 +124,7 @@ func postRequest(content *Webhook) { } func cronTask() error { - dir := filepath.Join(".", "content") + dir := filepath.Join("/etc", "fbBot", "content") os.MkdirAll(dir, os.ModePerm) opts := append(chromedp.DefaultExecAllocatorOptions[:],