Update test scripts

This commit is contained in:
Markus Frosch 2017-04-21 11:50:35 +02:00
parent eb867fd1e7
commit a5cdf4c9c8
1 changed files with 3 additions and 13 deletions

View File

@ -1,18 +1,8 @@
#!/bin/bash
# this script runs in the rpm_test environment
sudo yum install -y createrepo
# TODO: database?
createrepo $WORKSPACE/archive
sudo -E su -c "cat << EOF > /etc/yum.repos.d/local.repo
[local]
name=Nyarlathotep
baseurl=file://$WORKSPACE/archive
enabled=1
gpgcheck=0
EOF"
sudo yum update -y
sudo yum install -y icinga2 mariadb-server icinga2-ido-mysql
install_package icinga2 icinga2-ido-mysql icinga2-ido-pgsql
sudo icinga2 daemon -C