Last active
May 19, 2017 02:45
-
-
Save hoangdh/f7e2a65dd2f048c8650cfb45a93ad504 to your computer and use it in GitHub Desktop.
This file contains 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
apt-get update | |
apt-get install wget gdebi-core -y | |
wget https://mathias-kettner.de/support/1.2.8p21/check-mk-raw-1.2.8p21_0.xenial_amd64.deb | |
echo y | gdebi check-mk-raw-1.2.8p21_0.xenial_amd64.deb | |
omd create site1 | |
omd start site1 | |
check_fw=`ufw status | grep -w "active"` | |
if [ -n "$check_fw" ] | |
then | |
ufw allow 80/tcp | |
ufw reload | |
echo "Firewall has been configured." | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment