Skip to content

Commit f2035c2

Browse files
author
jdv
committed
added env tweak to cron task trick to hub update too
1 parent 3f8752a commit f2035c2

File tree

1 file changed

+3
-0
lines changed
  • crowdsec-docs/unversioned/getting_started/installation

1 file changed

+3
-0
lines changed

crowdsec-docs/unversioned/getting_started/installation/cloudways.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ sleep "$(seq 1 300 | shuf -n 1)"
202202
203203
upgraded=$(/home/master/crowdsec/cscli -c /home/master/crowdsec/config.yaml --error hub upgrade)
204204
if [ -n "$upgraded" ]; then
205+
# Providing env context to the cron job
206+
export XDG_RUNTIME_DIR=/run/user/$(id -u)
207+
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
205208
systemctl --user reload crowdsec
206209
fi
207210

0 commit comments

Comments
 (0)