1
0
mirror of https://github.com/tommytran732/Pterodactyl-Script synced 2024-10-18 04:35:12 -04:00

Enable Yara and Insights for RHEL

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2022-12-07 17:34:39 -05:00
parent 0d8cd2199b
commit 34a2c22561
No known key found for this signature in database
GPG Key ID: 060B29EB996BD9F2
2 changed files with 7 additions and 1 deletions

1
.gitignore vendored
View File

@ -1 +0,0 @@
.idea/

View File

@ -560,6 +560,13 @@ linux_hardening(){
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
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(){