This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Bash Script by https://gist.github.com/mitchellkrogza | |
| # ************************************************************ | |
| # This script clears the log file and database of Fail2Ban | |
| # This resets Fail2Ban to a completely clean state | |
| # Useful to use after you have finished testing all your jails | |
| # and completed your initial setup of Fail2Ban and are now | |
| # putting the server into LIVE mode | |
| # ************************************************************ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # This bash script help release astpp from overfull logs To view the top 10 biggest directories cloggin up the HDD, run sudo du | |
| # --block-size=M -a / | sort -n -r | head -n 10 empty astpp.logs | |
| echo "Emptying astpp logs" | |
| cd /var/log/astpp/ | |
| > astpp.log | |
| # empty freeswitch logs | |
| echo "Emptying freeswitch logs" | |
| cd /usr/local/freeswitch/log/ |
NewerOlder