#!/bin/sh
set -e

wget --output-document install.html http://localhost/shaarli 2>&1
head install.html
grep --quiet "Install Shaarli" install.html
grep --quiet "All read/write permissions are properly set." install.html
# Check that all PHP extensions are loaded.
grep --quiet --invert-match "fa-color-red" install.html
grep --quiet --invert-match "fa-color-orange" install.html

rm install.html
