X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=debian%2Fscripts%2Fkoha-restore;h=e8ec053ee07e6bedffdcadf5f0e773cb9de6d5a5;hb=7b1e8c59fe0edc2faab878c6bd9d45de9f720e81;hp=caf4c7d99fda3628a9fae3fb969e0e96c5151781;hpb=d7a51d83c16f5617ee975bfedd055eddde0c8c9f;p=koha-ffzg.git diff --git a/debian/scripts/koha-restore b/debian/scripts/koha-restore index caf4c7d99f..e8ec053ee0 100755 --- a/debian/scripts/koha-restore +++ b/debian/scripts/koha-restore @@ -19,12 +19,13 @@ set -e - -die() { - echo "$@" 1>&2 +# include helper functions +if [ -f "/usr/share/koha/bin/koha-functions.sh" ]; then + . "/usr/share/koha/bin/koha-functions.sh" +else + echo "Error: /usr/share/koha/bin/koha-functions.sh not present." 1>&2 exit 1 -} - +fi # Parse command line. [ "$#" = 2 ] || die "Usage: $0 sqldump configdump"