/adei/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/trunk

« back to all changes in this revision

Viewing changes to scripts/cron/adei_clean.cron.sh

  • Committer: Suren A. Chilingaryan
  • Date: 2018-02-23 00:43:47 UTC
  • Revision ID: csa@suren.me-20180223004347-q0ull7zmz2ndajlt
Migrate some docker stuff to sources

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/bash
2
2
 
 
3
${ADEI_PATH:=/srv/www/htdocs/adei}
 
4
 
3
5
[ -f /adei/env ] && . /adei/env
4
6
 
5
 
if [ -f /adei/sys/adei_clean.cron.sh ]; then
 
7
script=$( cd $(dirname "$0") && pwd )/$( basename "$0" )
 
8
if [ -f /adei/sys/adei_clean.cron.sh -a "$script" != /adei/sys/adei_clean.cron.sh ]; then
6
9
    /adei/sys/adei_clean.cron.sh
7
10
    exit
8
11
fi
9
12
 
10
 
adei_path="/srv/www/htdocs/adei/"
 
13
adei_path="$ADEI_PATH"
11
14
path="$adei_path/tmp/clients/"
12
15
 
13
16
find $path -type f -atime +0 -exec rm -f '{}' \;