diff --git a/Repositories/otago_eprints/Makefile b/Repositories/otago_eprints/Makefile index 0a50cf3..ec3d131 100755 --- a/Repositories/otago_eprints/Makefile +++ b/Repositories/otago_eprints/Makefile @@ -6,6 +6,8 @@ # # Used in Makefile # EPRINTS_ROOT: /path/to/eprints/installation +# EPRINTS_USER: the user that owns the EPrints directory +# EPRINTS_GROUP: the group that owns the EPrints directory # # Used in ARCHIVE.xml configuration file # EPRINTS_HOST: eprints host name @@ -40,7 +42,7 @@ --recursive --times . $(EPRINTS_ROOT)/archives > .del-rsync-output @-grep $(ARCHIVE_NAME) .del-rsync-output @announce "Correcting ownership..." - sudo chown -R $(EPRINTS_USER):$(EPRINTS_USER) $(ARCHIVE_CONFIG) $(ARCHIVE_ROOT) + sudo chown -R $(EPRINTS_USER):$(EPRINTS_GROUP) $(ARCHIVE_CONFIG) $(ARCHIVE_ROOT) @-grep --quiet "$(ARCHIVE_NAME)\\.xml" .del-rsync-output && $(MAKE) generate_apacheconf @-grep --quiet "$(ARCHIVE_NAME)/cfg/subjects" .del-rsync-output && $(MAKE) import_subjects @-grep --quiet "\\(otago_eprints/cfg/static/\\)\\|\\(\\.xml\\)" .del-rsync-output && $(MAKE) generate_static