#!/bin/sh

su - bareos -s /bin/sh -c "/usr/sbin/bareos-dir -t" && service bareos-dir restart
exit $?

