#!/bin/bash

[ "$(CreoleGet activer_mysql)" = "non" ] && exit 0

fileroot="binlog"
container_path=$(CreoleGet container_path_mysql)
index_file="${container_path}/var/lib/mysql/${fileroot}.index"

if [ "$(CreoleGet mysql_activer_binlog)" = "non" ]
then
    CreoleRun "mysql --defaults-file=/etc/mysql/debian.cnf -e 'PURGE BINARY LOGS BEFORE NOW();'" "mysql"
fi

exit 0

