Update checkmk-install.sh

This commit is contained in:
CanbiZ 2024-12-20 13:18:25 +01:00 committed by GitHub
parent 2892762a80
commit 8e1644ab6e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,18 +28,19 @@ $STD apt-get install -y /opt/checkmk.deb
echo "${RELEASE}" >"/opt/checkmk_version.txt"
msg_ok "Installed Checkmk"
motd_ssh
customize
msg_info "Creating Service"
PASSWORD=$(omd create monitoring | grep "password:" | awk '{print $NF}')
$STD omd start
{
echo "Application-Credentials"
echo "Username: cmkadmin"
echo "Password: cmkadmin"
echo "Password: $PASSWORD"
} >> ~/checkmk.creds
msg_ok "Created Service"
motd_ssh
customize
msg_info "Cleaning up"
rm -rf /opt/checkmk.deb
$STD apt-get -y autoremove