Add log_truncate.sh
This commit is contained in:
1 parent
41ecc8fd09
commit
4f016ef182
1 file changed
+7
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cd /var/log/stunnel
|
||||||
|
|
||||||
|
for file in *.log; do
|
||||||
|
truncate -s 0 "$file"
|
||||||
|
done
|
||||||
Reference in new issue
Block a user