Skip to content

Commit

Permalink
[change!] Renamed delete_old_users to delete_old_radiusbatch_users #463
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Mar 5, 2024
1 parent cef94b4 commit 29861b5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1216,7 +1216,7 @@ Below are listed all the variables you can customize (you may also want to take
# favorite SMS API gateway
openwisp2_radius_sms_backend: "sendsms.backends.console.SmsBackend"
openwisp2_radius_sms_token_max_ip_daily: 25
openwisp2_radius_delete_old_users: 365
openwisp2_radius_delete_old_radiusbatch_users: 365
openwisp2_radius_cleanup_stale_radacct: 1
openwisp2_radius_delete_old_postauth: 365
# days for which the radius accounting sessions (radacct) are retained,
Expand Down Expand Up @@ -1254,7 +1254,7 @@ Below are listed all the variables you can customize (you may also want to take
freeradius_openwisp_site_listen_ipaddr: "10.8.0.1"
cron_delete_old_notifications: "'hour': 0, 'minute': 0"
cron_deactivate_expired_users: "'hour': 0, 'minute': 5"
cron_delete_old_users: "'hour': 0, 'minute': 10"
cron_delete_old_radiusbatch_users: "'hour': 0, 'minute': 10"
cron_cleanup_stale_radacct: "'hour': 0, 'minute': 20"
cron_delete_old_postauth: "'hour': 0, 'minute': 30"
cron_delete_old_radacct: "'hour': 1, 'minute': 30"
Expand Down
4 changes: 2 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ openwisp2_users_user_password_expiration: 0
openwisp2_users_staff_user_password_expiration: 0
openwisp2_radius_sms_backend: "sendsms.backends.console.SmsBackend"
openwisp2_radius_sms_token_max_ip_daily: 25
openwisp2_radius_delete_old_users: 365
openwisp2_radius_delete_old_radiusbatch_users: 365
openwisp2_radius_cleanup_stale_radacct: 1
openwisp2_radius_delete_old_postauth: 365
openwisp2_radius_delete_old_radacct: 365
Expand Down Expand Up @@ -199,7 +199,7 @@ freeradius_safe_characters: "+@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVW
freeradius_openwisp_site_listen_ipaddr: "*"
cron_delete_old_notifications: "'hour': 0, 'minute': 0"
cron_deactivate_expired_users: "'hour': 0, 'minute': 5"
cron_delete_old_users: "'hour': 0, 'minute': 10"
cron_delete_old_radiusbatch_users: "'hour': 0, 'minute': 10"
cron_cleanup_stale_radacct: "'hour': 0, 'minute': 20"
cron_delete_old_postauth: "'hour': 0, 'minute': 30"
cron_password_expiration_email: "'hour': 1, 'minute': 0"
Expand Down
8 changes: 4 additions & 4 deletions templates/openwisp2/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,10 @@
'args': None,
'relative': True,
},
'delete_old_users': {
'task': 'openwisp_radius.tasks.delete_old_users',
'schedule': crontab(**{ {{ cron_delete_old_users }} }),
'args': [{{ openwisp2_radius_delete_old_users }}],
'delete_old_radiusbatch_users': {
'task': 'openwisp_radius.tasks.delete_old_radiusbatch_users',
'schedule': crontab(**{ {{ cron_delete_old_radiusbatch_users }} }),
'args': [{{ openwisp2_radius_delete_old_radiusbatch_users }}],
'relative': True,
},
'cleanup_stale_radacct': {
Expand Down

0 comments on commit 29861b5

Please sign in to comment.