mirror of
https://github.com/tommytran732/Pterodactyl-Script
synced 2024-11-22 10:31:34 -05:00
Enable Yara and Insights for RHEL
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
0d8cd2199b
commit
34a2c22561
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +0,0 @@
|
|||||||
.idea/
|
|
@ -560,6 +560,13 @@ linux_hardening(){
|
|||||||
mkdir -p /etc/systemd/system/sshd.service.d
|
mkdir -p /etc/systemd/system/sshd.service.d
|
||||||
curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/systemd/system/sshd.service.d/limits.conf -o /etc/systemd/system/sshd.service.d/limits.conf
|
curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/systemd/system/sshd.service.d/limits.conf -o /etc/systemd/system/sshd.service.d/limits.conf
|
||||||
systemctl restart sshd
|
systemctl restart sshd
|
||||||
|
|
||||||
|
if [ "$lsb_dist" = "rhel" ]; then
|
||||||
|
insights-client --register
|
||||||
|
dnf install -y yara
|
||||||
|
insights-client --collector malware-detection
|
||||||
|
sed -i 's/test_scan: true/test_scan: false/' /etc/insights-client/malware-detection-config.yml
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
database_host_reset(){
|
database_host_reset(){
|
||||||
|
Loading…
Reference in New Issue
Block a user