To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 9d4c1350 authored by Reto Da Forno's avatar Reto Da Forno

overwritten with files from whymper

git-svn-id: svn://svn.ee.ethz.ch/flocklab/trunk/shared@3344 613144d5-4475-0410-9df3-888732ad2c88
parent ef262df7
#!/bin/bash
VIZDIR="/home/flocklab/testmanagement/viz/"
FILESTOKEEP=100
NUM=$(ls -1 $VIZDIR | wc -l)
if [ $NUM -gt $FILESTOKEEP ]; then
# clear all subfolders except for the most recent ones
FILECNT=$(($NUM - $FILESTOKEEP))
echo "deleting $FILECNT files..."
FILELIST=$(ls $VIZDIR | head -$FILECNT)
for F in $FILELIST
do
#echo "deleting ${VIZDIR}${F}"
rm -r ${VIZDIR}${F}
done
else
echo "nothing to delete"
fi
logrotate state -- version 2
"/home/flocklab/testmanagement/log/flocklab_webapp.log" 2018-4-25-0:0:1
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment