summaryrefslogtreecommitdiff
path: root/etc/jwstdp-latest/tasks/999-clean.sh
diff options
context:
space:
mode:
Diffstat (limited to 'etc/jwstdp-latest/tasks/999-clean.sh')
-rwxr-xr-xetc/jwstdp-latest/tasks/999-clean.sh18
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