summaryrefslogtreecommitdiffstats
path: root/adei/configs/adei_clean.cron.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-02-23 02:11:06 +0100
committerSuren A. Chilingaryan <csa@suren.me>2018-02-23 02:11:06 +0100
commitb81418759a81dd1e3064a6a5975271277d5c51c8 (patch)
tree15126dcb07609df7b75141842a4f2b3cb3dbe350 /adei/configs/adei_clean.cron.sh
parent56bca63e5daf375f13500c0a79f2ddf2b678769d (diff)
downloadadei-b81418759a81dd1e3064a6a5975271277d5c51c8.tar.gz
adei-b81418759a81dd1e3064a6a5975271277d5c51c8.tar.bz2
adei-b81418759a81dd1e3064a6a5975271277d5c51c8.tar.xz
adei-b81418759a81dd1e3064a6a5975271277d5c51c8.zip
Save session variables in writable /tmp folder
Diffstat (limited to 'adei/configs/adei_clean.cron.sh')
-rw-r--r--adei/configs/adei_clean.cron.sh21
1 files changed, 0 insertions, 21 deletions
diff --git a/adei/configs/adei_clean.cron.sh b/adei/configs/adei_clean.cron.sh
deleted file mode 100644
index e9b430f..0000000
--- a/adei/configs/adei_clean.cron.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/bash
-
-[ -f /adei/env ] && . /adei/env
-
-script=$( cd $(dirname "$0") && pwd )/$( basename "$0" )
-if [ -f /adei/sys/adei_clean.cron.sh -a "$script" != /adei/sys/adei_clean.cron.sh ]; then
- /adei/sys/adei_clean.cron.sh
- exit
-fi
-
-adei_path="/srv/www/htdocs/adei/"
-path="$adei_path/tmp/clients/"
-
-find $path -type f -atime +0 -exec rm -f '{}' \;
-find $path -type d -empty -atime +1 -mindepth 1 -delete
-
-#find $path -type f -mtime +7 -exec rm -f '{}' \;
-#find $path -type d -empty -atime +1 -mindepth 1 -print0 | xargs -0 -r rmdir
-
-path="$adei_path/tmp/log"
-find $path -type f -mtime +14 -exec rm -f '{}' \;