diff options
author | Simon Rettberg | 2014-10-23 19:00:57 +0200 |
---|---|---|
committer | Simon Rettberg | 2014-10-23 19:00:57 +0200 |
commit | 6dff818ff02829f2f1c95d2c5c927f0e42fb99eb (patch) | |
tree | 1b2aa382a803716c3ef31882f610094a9fef88d5 /satellit_installer/static_files/tmpdelete.sh | |
parent | Merge branch 'master' of git.openslx.org:bwlp/setup-scripts (diff) | |
download | setup-scripts-6dff818ff02829f2f1c95d2c5c927f0e42fb99eb.tar.gz setup-scripts-6dff818ff02829f2f1c95d2c5c927f0e42fb99eb.tar.xz setup-scripts-6dff818ff02829f2f1c95d2c5c927f0e42fb99eb.zip |
[SSPS] Fix tmpdelete.sh installation, so it actually works, add cleaning of image upload temp dir
Diffstat (limited to 'satellit_installer/static_files/tmpdelete.sh')
-rwxr-xr-x | satellit_installer/static_files/tmpdelete.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/satellit_installer/static_files/tmpdelete.sh b/satellit_installer/static_files/tmpdelete.sh index 9f62935..84c98e9 100755 --- a/satellit_installer/static_files/tmpdelete.sh +++ b/satellit_installer/static_files/tmpdelete.sh @@ -3,3 +3,5 @@ # This is a mini script called by a cronjob to delete bwlp-entries in /tmp # directory older ~2 days. find /tmp -mtime +2 -name "bwlp-*" -maxdepth 1 -exec rm -rf {} \; 2>/dev/null +# Same for VM uploads +[ -d /srv/openslx/nfs/temp ] && find /srv/openslx/nfs/temp -mtime +2 -type f 1 -exec rm -rf {} \; 2>/dev/null |