diff --git a/Repositories/otago_eprints/Makefile b/Repositories/otago_eprints/Makefile index 0139e40..83337a3 100755 --- a/Repositories/otago_eprints/Makefile +++ b/Repositories/otago_eprints/Makefile @@ -46,7 +46,7 @@ deploy: $(GENERATED_FILES) @announce "Copying files..." - @sudo -u $(EPRINTS_USER) rsync --verbose --cvs-exclude --exclude=Makefile \ + @$(SUDO) rsync --verbose --cvs-exclude --exclude=Makefile \ --exclude='*.make' --exclude='*_src.*' \ --recursive --times . $(EPRINTS_ROOT)/archives > .del-rsync-output @-grep $(ARCHIVE_NAME) .del-rsync-output @@ -72,17 +72,17 @@ generate_apacheconf: @announce "generate_apacheconf" - @sudo -u $(EPRINTS_USER) $(BINDIR)/$@ + $(SUDO) $(BINDIR)/$@ import_subjects: @announce "$@ $(ARCHIVE_NAME)" - @sudo -u $(EPRINTS_USER) $(BINDIR)/$@ $(ARCHIVE_NAME) --xml $(ARCHIVE_NAME)/cfg/subjects.xml + @$(SUDO) $(BINDIR)/$@ $(ARCHIVE_NAME) --xml $(ARCHIVE_NAME)/cfg/subjects.xml generate_static generate_abstracts generate_views: @announce "$@ $(ARCHIVE_NAME)" - @sudo -u $(EPRINTS_USER) $(BINDIR)/$@ $(ARCHIVE_NAME) + @$(SUDO) $(BINDIR)/$@ $(ARCHIVE_NAME) restart_apache: @@ -96,13 +96,13 @@ index: @announce "Rebuilding indexes..." - @sudo -u $(EPRINTS_USER) $(BINDIR)/indexer start --once --notdaemon + @$(SUDO) $(BINDIR)/indexer start --once --notdaemon stats: @announce "Generating statistics..." @php $(EPRINTS_ROOT)/ePrintsStats/scripts/eprints-usage.php -# @sudo -u $(EPRINTS_USER) perl $(EPRINTS_ROOT)/ePrintsStats/scripts/add_country.pl +# @$(SUDO) perl $(EPRINTS_ROOT)/ePrintsStats/scripts/add_country.pl debug: