Commit ca3c34e1 authored by Markus Frosch's avatar Markus Frosch 📣

testing: Make compatible to new build scripts

parent 5c01f22d
......@@ -2,22 +2,21 @@
set -ex
project="icingaweb2"
if [ -d archive ]; then
cd archive
apt-ftparchive packages . > Packages
cd archive
sudo su -c 'echo "deb [trusted=yes] file:$(pwd)/ ./" >> /etc/apt/sources.list'
apt-ftparchive packages . > Packages
sudo su -c 'echo "deb [trusted=yes] file:$(pwd)/ ./" >> /etc/apt/sources.list'
sudo apt-get update -y
sudo apt-get update -y
fi
sudo apt-get install -y --force-yes icingaweb2 apache2
sudo apache2ctl start || echo "apache2ctl start failed"
RSTATUS=$(curl -s -w %{http_code} http://localhost/icingaweb2/authentication/login -o /dev/null)
RSTATUS=$(curl -s -w "%{http_code}" http://localhost/icingaweb2/authentication/login -o /dev/null)
if [ "200" != "$RSTATUS" ]; then
echo "Http exit code was not ok!"
exit 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment