Fixing clean_logs
This commit is contained in:
parent
a15b47444a
commit
7f79cbe8c1
@ -13,12 +13,12 @@ function sph {
|
|||||||
-o MACs=hmac-sha1 \
|
-o MACs=hmac-sha1 \
|
||||||
-o KexAlgorithms=diffie-hellman-group1-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1 \
|
-o KexAlgorithms=diffie-hellman-group1-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1 \
|
||||||
-c aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc \
|
-c aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc \
|
||||||
-l root $1
|
-l root $1 $2
|
||||||
}
|
}
|
||||||
|
|
||||||
# Clean common logs from servers
|
# Clean common logs from servers
|
||||||
|
|
||||||
function clean_logs {
|
function clean_logs {
|
||||||
sph $1 "rm -rf /var/log/*.{1,2,3,4,5,6,7,8,9} /var/log/sa/*"
|
sph $1 "rm -rf /var/log/*.{0,1,2,3,4,5,6,7,8,9} /var/log/*.gz /var/log/sa/*"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user