#!/usr/bin/bash

# Ubuntu preinstall
# store the header, database and cbb.config if any of these exists already
if [ -r /usr/lib/cryptobone/safewebdrop.header ] ; then
     /usr/bin/cp /usr/lib/cryptobone/safewebdrop.header /usr/lib/cryptobone/header.backup
fi     
if [ -r /usr/lib/cryptobone/database ] ; then
     /usr/bin/cp /usr/lib/cryptobone/database /usr/lib/cryptobone/database.backup
fi     
if [ -r /usr/lib/cryptobone/cbb.config ] ; then
     /usr/bin/cp /usr/lib/cryptobone/cbb.config /usr/lib/cryptobone/cbb.config.backup
fi

exit 0

