#!/bin/bash LOG=$(/sbin/e-smith/db configuration getprop samba-db-logd status || echo 'disabled') if [ "$LOG" != "enabled" ]; then exit 0 fi RETENTION=$(/sbin/e-smith/db configuration getprop samba-db-logd Retention || echo 370) DB=$(/sbin/e-smith/db configuration getprop samba-db-logd DbName || echo samba_log) echo "delete from audit where date_day