vali 6 gadi atpakaļ
vecāks
revīzija
6742249524
1 mainītis faili ar 7 papildinājumiem un 0 dzēšanām
  1. 7 0
      commands/rmlog.sh

+ 7 - 0
commands/rmlog.sh

@@ -0,0 +1,7 @@
+#!/bin/sh
+pathbase="/home/swooleProV2/dataInterface/logs/"
+fullpath=${pathbase}`date -d '7 days ago' +%Y-%m-%d`
+
+if [ -d $fullpath ];then
+   rm  -rf   $fullpath
+fi