Commit 5fa5c6b7 authored by Gavin Bisesi's avatar Gavin Bisesi
Browse files

Merge pull request #787 from Cockatrice/woogerboy21-inactiveregcleanup

Cleanup script to delete unactivated user accounts
parents fd4f7628 38b62352
#!/bin/bash
# SCHEDULE WITH CRONTAB BASED ON TIME PERIOD UNACTIVE ACCOUNT SHOULD BE REMOVED. UPDATE INTERVAL DATE TO BE NUMBER OF DAYS OLD (OR OLDER) TO REMOVE.
mysql --defaults-file=./mysql.cnf -h localhost -e 'delete from servatrice.cockatrice_users where registrationDate < DATE_SUB(now(), INTERVAL 5 DAY) AND active = 0';
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment