diff --git a/scripts/cleanup_datasets/delete_userless_histories_main.sh b/scripts/cleanup_datasets/delete_userless_histories_main.sh index e0c486336a0..75a437d2b51 100644 --- a/scripts/cleanup_datasets/delete_userless_histories_main.sh +++ b/scripts/cleanup_datasets/delete_userless_histories_main.sh @@ -1,9 +1,4 @@ #!/bin/sh -# This script must be executed from the $UNIVERSE_HOME directory -# e.g., sh ./scripts/cleanup_datasets/delete_userless_histories_main.sh - -. ./scripts/get_python.sh -. ./setup_paths.sh - -$GALAXY_PYTHON ./scripts/cleanup_datasets/cleanup_datasets.py ./universe_wsgi.ini -d 60 -2 $@ >> ./scripts/cleanup_datasets/delete_userless_histories_main.log +cd `dirname $0`/../.. +python ./scripts/cleanup_datasets/cleanup_datasets.py ./universe_wsgi.ini -d 60 -2 $@ >> ./scripts/cleanup_datasets/delete_userless_histories.log diff --git a/scripts/cleanup_datasets/purge_datasets_main.sh b/scripts/cleanup_datasets/purge_datasets_main.sh index 64737d2eb1f..a1791be9aed 100644 --- a/scripts/cleanup_datasets/purge_datasets_main.sh +++ b/scripts/cleanup_datasets/purge_datasets_main.sh @@ -1,9 +1,4 @@ #!/bin/sh -# This script must be executed from the $UNIVERSE_HOME directory -# e.g., sh ./scripts/cleanup_datasets/purge_datasets_main.sh - -. ./scripts/get_python.sh -. ./setup_paths.sh - -$GALAXY_PYTHON ./scripts/cleanup_datasets/cleanup_datasets.py ./universe_wsgi.ini -d 60 -6 -r $@ >> ./scripts/cleanup_datasets/purge_datasets_main.log +cd `dirname $0`/../.. +python ./scripts/cleanup_datasets/cleanup_datasets.py ./universe_wsgi.ini -d 60 -6 -r $@ >> ./scripts/cleanup_datasets/purge_datasets.log diff --git a/scripts/cleanup_datasets/purge_histories_main.sh b/scripts/cleanup_datasets/purge_histories_main.sh index f693ad43196..538f9d0d5f0 100644 --- a/scripts/cleanup_datasets/purge_histories_main.sh +++ b/scripts/cleanup_datasets/purge_histories_main.sh @@ -1,9 +1,4 @@ #!/bin/sh -# This script must be executed from the $UNIVERSE_HOME directory -# e.g., sh ./scripts/cleanup_datasets/purge_histories_main.sh - -. ./scripts/get_python.sh -. ./setup_paths.sh - -$GALAXY_PYTHON ./scripts/cleanup_datasets/cleanup_datasets.py ./universe_wsgi.ini -d 60 -4 -r $@ >> ./scripts/cleanup_datasets/purge_histories_main.log +cd `dirname $0`/../.. +python ./scripts/cleanup_datasets/cleanup_datasets.py ./universe_wsgi.ini -d 60 -4 -r $@ >> ./scripts/cleanup_datasets/purge_histories.log