Last active
December 14, 2022 21:43
-
-
Save ryanfaircloth/f6c2925b433198606d24af4aafa01779 to your computer and use it in GitHub Desktop.
mimecast
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt -y install php7.2 php7.2-cli php7.2-common php7.2-dom php7.2-curl php7.2-mbstring php7.2-zip zlib1g zlib1g-dev libzip4 libzip-dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /tmp | |
sudo php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer | |
sudo php -r "unlink('composer-setup.php');" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /user/local/mimecast-humio-middleware | |
sudo COMPOSER_ALLOW_SUPERUSER=1 composer install | |
sudo chmod +x bin/console | |
sudo chmod -R +w checkpoint | |
sudo systemctl daemon-reload | |
sudo systemctl enable mimecast.timer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sudo nano /etc/systemd/system/mimecast.service | |
[Unit] | |
Description=Sync Mimecast | |
Wants=mimecast.timer | |
[Service] | |
Type=oneshot | |
ExecStart=php bin/console humio-ingest audit-events siem-logs –retrievalPeriod=5 | |
WorkingDirectory=/usr/loca/mimecast-humio-middleware | |
[Install] | |
WantedBy=multi-user.target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sudo nano /etc/systemd/system/mimecast.timer | |
[Unit] | |
Description=Run mimecast sync every 5m | |
Requires=mimecast.service | |
[Timer] | |
OnActiveSec=5m | |
Persistent=true | |
[Install] | |
WantedBy=timers.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment