mirror of
https://codeberg.org/Windfluechter/cleanup-friendica.git
synced 2024-06-10 05:20:18 +02:00
Update README.md
This commit is contained in:
parent
32c2032acd
commit
d7cbaa613c
|
@ -2,13 +2,13 @@
|
||||||
This is a small cleanup script for Friendica node admins to help with forgotten or dead accounts.
|
This is a small cleanup script for Friendica node admins to help with forgotten or dead accounts.
|
||||||
|
|
||||||
The script does two things:
|
The script does two things:
|
||||||
1. delete all users after a week that haven't logged in at all and didn't post anything (filter "weeks" and "never never")
|
1. delete all users after a week that haven't logged in at all and didn't post anything (filter `weeks` and `never.*never`)
|
||||||
2. search for accounts that haven't logged in for 6 months, send them a reminder mail and delete accounts that haven't logged within 7 months
|
2. search for accounts that haven't logged in for 6 months, send them a reminder mail and delete accounts that haven't logged within 7 months
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
* save the script to your disk where your webserver user or the user running Friendica can access it (e.g. not under /root, maybe /usr/local/bin)
|
* save the script to your disk where your webserver user or the user running Friendica can access it (e.g. not under /root, maybe /usr/local/bin)
|
||||||
* make the script executable (e.g. chown www-data:www-data /path/to/cleanup_friendica.sh && chmod ug+rx /path/to/cleanup_friendica.sh)
|
* make the script executable (e.g. `chown www-data:www-data /path/to/cleanup_friendica.sh && chmod ug+rx /path/to/cleanup_friendica.sh)`
|
||||||
* create a crontab to execute the script, e.g.: "16 9 2,15 * * /usr/local/bin/cleanup_friendica.sh" to execute the script every two weeks
|
* create a crontab to execute the script, e.g.: `16 9 2,15 * * /usr/local/bin/cleanup_friendica.sh` to execute the script every two weeks
|
||||||
* for the first 2 runs you should have the mail text the same and keep the deleting of the user commented out (line 54 in initial commit). After the first 2 runs you should change the first mail text to send out a mail that the account has been deleted because of inactivity and not reacting to the prior sent mails.
|
* for the first 2 runs you should have the mail text the same and keep the deleting of the user commented out (line 54 in initial commit). After the first 2 runs you should change the first mail text to send out a mail that the account has been deleted because of inactivity and not reacting to the prior sent mails.
|
||||||
* change the variables at the begin of the script to your site settings.
|
* change the variables at the begin of the script to your site settings.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue