Skip to content

Instantly share code, notes, and snippets.

@mwoodiupui
Created November 6, 2013 17:57
Show Gist options
  • Save mwoodiupui/7340959 to your computer and use it in GitHub Desktop.
Save mwoodiupui/7340959 to your computer and use it in GitHub Desktop.
Untested script to load a set of AIPs from a configured directory, if they are there.
#! /bin/sh
WHO="ferd@berfel"
CONTENT="~/content"
DSPACE_HOME="~/dspace"
SITE=`echo ${CONTENT}/SITE@* | cut -f1 -d' '`
if [ -n "${SITE}" ]
then
echo ${DSPACE_HOME}/bin/dspace packager \
--type AIP \
--no-user-interaction \
--install \
--eperson ${WHO} \
--restore \
${SITE}
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment