Skip to content

Commit

Permalink
add cronjob
Browse files Browse the repository at this point in the history
  • Loading branch information
drscream committed Aug 14, 2014
1 parent c1f90c0 commit 562dec9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions copy/var/zoneinit/includes/50-kumquat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,8 @@ EOF
# Create superadmin user
echo "from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'admin@example.com', '${ADMIN_KUMQUAT}')" \
| /opt/kumquat/manage.py shell

# Create cronjobs for kumquat
CRON="0,5,10,15,20,25,30,35,40,45,50,55 * * * * (cd /opt/kumquat/; ./manage.py update_vhosts)
0,15,30,45 * * * * (cd /opt/kumquat/; ./manage.py delete_vhosts)"
(crontab -l 2>/dev/null || true; echo "$CRON" ) | sort | uniq | crontab

0 comments on commit 562dec9

Please sign in to comment.