diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-02-15 22:11:56 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-02-15 22:11:56 -0500 |
commit | c8ad645d8827bdd9fedc19a8c67f22aa016f8290 (patch) | |
tree | 940bab200a80641ca0b6d748e8e3576970a8c290 /etc/jwstdp-latest/tasks/999-clean.sh | |
parent | 3190d616c3b61ba7f173dba1e46af701bbf2e34c (diff) | |
download | docker-pipeline-c8ad645d8827bdd9fedc19a8c67f22aa016f8290.tar.gz |
Refactor build/publish
Diffstat (limited to 'etc/jwstdp-latest/tasks/999-clean.sh')
-rwxr-xr-x | etc/jwstdp-latest/tasks/999-clean.sh | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/etc/jwstdp-latest/tasks/999-clean.sh b/etc/jwstdp-latest/tasks/999-clean.sh deleted file mode 100755 index 7487b9c..0000000 --- a/etc/jwstdp-latest/tasks/999-clean.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -x -if [[ ! -f /.dockerenv ]]; then - echo "This script cannot be executed outside of a docker container." - exit 1 -fi - -rm -rf "${HOME}/.astropy" -rm -rf "${HOME}/.cache" -rm -rf "${HOME}"/* - -sudo yum clean all -sudo rm -rf /tmp/* -sudo rm -rf /var/cache/yum - -for logfile in /var/log/* -do - sudo truncate --size=0 "${logfile}" -done |