if [ -e $REQUEST_FILE ]; then
echo Config has not changed, skipping request.
if [ -e $REQUEST_FILE ]; then
echo Config has not changed, skipping request.
if [ -d /var/lib/mysql -o -d /var/lib/postgresql ]; then
du -sh /var/lib/mysql /var/lib/postgresql >$DB_FILE 2>/dev/null || true
fi
# generate client config
if [ -d /var/lib/mysql -o -d /var/lib/postgresql ]; then
du -sh /var/lib/mysql /var/lib/postgresql >$DB_FILE 2>/dev/null || true
fi
# generate client config
sed -n '/BEGIN CERTIFICATE/,/END CERTIFICATE/p' \
/etc/bacula/bacula-fd.pem > $PEM_FILE
sed -n '/BEGIN CERTIFICATE/,/END CERTIFICATE/p' \
/etc/bacula/bacula-fd.pem > $PEM_FILE