Added scripts for the Server.
This commit is contained in:
28
scripts/cleanbackups_and_log.sh
Executable file
28
scripts/cleanbackups_and_log.sh
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
# rm ~/backups/*
|
||||
truncate -s 0 /var/www/www.freeplanet_server/out.log
|
||||
# truncate -s 0 /var/www/www.freeplanet_server/err.log
|
||||
truncate -s 0 /var/www/www.freeplanet_server/combined.outerr.log
|
||||
|
||||
truncate -s 0 /var/www/test.freeplanet_server/out.log
|
||||
truncate -s 0 /var/www/test.freeplanet_server/err.log
|
||||
truncate -s 0 /var/www/test.freeplanet_server/combined.outerr.log
|
||||
|
||||
|
||||
rm /var/log/auth.log.*
|
||||
rm /var/log/btmp.*
|
||||
rm /var/log/fail2ban.*
|
||||
rm /var/log/kern.log.*
|
||||
rm /var/log/mail.err.*
|
||||
rm /var/log/mail.log.*
|
||||
rm /var/log/syslog.*
|
||||
truncate -s 0 /var/log/syslog
|
||||
truncate -s 0 /var/log/xrdp.log
|
||||
truncate -s 0 /var/log/auth.log
|
||||
truncate -s 0 /var/log/kern.log
|
||||
truncate -s 0 /var/log/mail.log
|
||||
truncate -s 0 /var/log/mail.err
|
||||
truncate -s 0 /var/log/btmp
|
||||
|
||||
|
||||
Reference in New Issue
Block a user