mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-12-24 23:58:59 +01:00
Closes #161 - provide script to simplify automation of email polling
This commit is contained in:
parent
e3ef1e4f20
commit
6b0c9c48e8
18
helpdesk/poll_helpdesk_email_queues.sh
Normal file
18
helpdesk/poll_helpdesk_email_queues.sh
Normal file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
# don't forget to add this script to the /etc/crontab:
|
||||
#
|
||||
# */1 * * * * username /home/username/django/project/poll_helpdesk_email_queues.sh >> /tmp/foo.log 2>&1
|
||||
|
||||
# set your django and project paths here
|
||||
PATHTODJANGO="/home/username/django/libraries/lib/python"
|
||||
PATHTOPROJECT="/home/username/django/project/"
|
||||
|
||||
|
||||
export PYTHONPATH=$PYTHONPATH:$PATHTODJANGO:$PATHTOPROJECT:
|
||||
|
||||
cd $PATHTOPROJECT
|
||||
/usr/bin/python manage.py get_email
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user