mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-26 18:04:34 +00:00
Fix string coercion issue with clean-audit-log
This commit is contained in:
parent
76a8640246
commit
d765db5332
|
@ -35,7 +35,7 @@ in {
|
||||||
services."clean-audit-log" = {
|
services."clean-audit-log" = {
|
||||||
script = ''
|
script = ''
|
||||||
set -eu
|
set -eu
|
||||||
if [[ $(stat -c "%s" /var/log/audit/audit.log) -gt ${cfg.autoPrune.size} ]]; then
|
if [[ $(stat -c "%s" /var/log/audit/audit.log) -gt ${builtins.toString cfg.autoPrune.size} ]]; then
|
||||||
echo "Clearing Audit Log";
|
echo "Clearing Audit Log";
|
||||||
rm -rvf /var/log/audit/audit.log;
|
rm -rvf /var/log/audit/audit.log;
|
||||||
echo "Done!"
|
echo "Done!"
|
||||||
|
|
Loading…
Reference in a new issue