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-010000000000reality
parent
5e71e18a53
commit
48139ccfef
@ -0,0 +1,8 @@
|
||||
#!/usr/bin/php
|
||||
<?
|
||||
require_once("database.php");
|
||||
$db = new DB();
|
||||
|
||||
$db->closeVotes();
|
||||
|
||||
?>
|
@ -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
|
Loading…
Reference in New Issue