diff options
author | community.cacert.org <community.cacert.org@d4452222-2f33-11de-9270-010000000000> | 2009-07-12 02:08:45 +0000 |
---|---|---|
committer | community.cacert.org <community.cacert.org@d4452222-2f33-11de-9270-010000000000> | 2009-07-12 02:08:45 +0000 |
commit | 48139ccfef87a39e20e1fbecebcbf88ecb303dfa (patch) | |
tree | 70775a7afeca20f5af90cb79b99e4877e0d63792 /closevotes.php-script | |
parent | 5e71e18a53d346cc6b7c02f8c43cd788af2c97cc (diff) | |
download | cacert-boardvoting-48139ccfef87a39e20e1fbecebcbf88ecb303dfa.tar.gz cacert-boardvoting-48139ccfef87a39e20e1fbecebcbf88ecb303dfa.tar.xz cacert-boardvoting-48139ccfef87a39e20e1fbecebcbf88ecb303dfa.zip |
closing votes now controlled by crontab (user www-data) to close daily on the new day. Votes are due in the last minute of previous day
git-svn-id: http://svn.cacert.cl/Software/Voting/vote@65 d4452222-2f33-11de-9270-010000000000
Diffstat (limited to 'closevotes.php-script')
-rw-r--r-- | closevotes.php-script | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/closevotes.php-script b/closevotes.php-script new file mode 100644 index 0000000..5246205 --- /dev/null +++ b/closevotes.php-script @@ -0,0 +1,2 @@ +# echo "select strftime('%H:%M %m%d%Y',due) from decisions where status=0;" | sqlite3 database.sqlite | xargs -n1 -I^ sudo -u www-data at -f closevotes.php-script ^ +1minute +/var/www/board/closevotes.php |