script to clear typo3 typo3temp directory

raw

README.rst

Setup:

  1. Put the file in a directory in your $PATH
  2. Make it executable and setuid: $ chmod +s cleartypo3temp
  3. Make sure it is owned by root: $ chown root cleartypo3temp
raw

cleartypo3temp.sh

1
2
3
4
5
6
7
8
#!/bin/sh
#empty typo3temp directory
test -d typo3temp/ && rm -rf typo3temp/* && exit 0
test -d ../typo3temp/ && rm -rf ../typo3temp/* && exit 0
test -d ../../typo3temp/ && rm -rf ../../typo3temp/* && exit 0
test -d ../../../typo3temp/ && rm -rf ../../../typo3temp/* && exit 0
test -d ../../../../typo3temp/ && rm -rf ../../../../typo3temp/* && exit 0
 
Christian Weiske Christian Weiske
owner

History