mirror of
https://github.com/ZwareBear/JFrog-Cloud-Installers.git
synced 2026-01-21 03:06:57 -06:00
Checking in code for rt 7.17.4 version
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user