mirror of
https://github.com/ZwareBear/JFrog-Cloud-Installers.git
synced 2026-01-21 11:06:56 -06:00
33 lines
531 B
Bash
33 lines
531 B
Bash
#!/bin/bash
|
|
function install_stuff_ubuntu(){
|
|
apt-get -y install auditd
|
|
}
|
|
|
|
function add_the_rules(){
|
|
cat /tmp/auditd.rules >> /etc/audit/rules.d/audit.rules
|
|
rm /tmp/auditd.rules
|
|
}
|
|
|
|
function restart_services(){
|
|
case "${BASTION_OS}" in
|
|
Amazon)
|
|
/usr/sbin/service auditd restart
|
|
;;
|
|
CentOS|SUSE)
|
|
/sbin/service auditd restart
|
|
;;
|
|
Ubuntu)
|
|
service auditd restart
|
|
;;
|
|
esac
|
|
}
|
|
|
|
case "${BASTION_OS}" in
|
|
Ubuntu)
|
|
install_stuff_ubuntu
|
|
;;
|
|
esac
|
|
|
|
add_the_rules
|
|
restart_services
|