Skip to content

Commit

Permalink
[change!] Updated openwisp2_radius_delete_old_radiusbatch_users #500
Browse files Browse the repository at this point in the history
Updated "openwisp2_radius_delete_old_radiusbatch_users" to set number
of days instead of number of months.

Closes #500
  • Loading branch information
pandafy authored and nemesifier committed Nov 25, 2024
1 parent d30ad3f commit 9dc3ddb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 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_radiusbatch_users: 12
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
2 changes: 1 addition & 1 deletion templates/openwisp2/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@
'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 }}],
'kwargs': {'older_than_days': {{ openwisp2_radius_delete_old_radiusbatch_users }}},
'relative': True,
},
'cleanup_stale_radacct': {
Expand Down

0 comments on commit 9dc3ddb

Please sign in to comment.