maintenance: Enable gzip in router.php for static files
[lhc/web/wiklou.git] / maintenance / dev / installmw.sh
1 #!/bin/bash
2
3 if [ "x$BASH_SOURCE" == "x" ]; then echo '$BASH_SOURCE not set'; exit 1; fi
4 DEV=$(cd -P "$(dirname "${BASH_SOURCE[0]}" )" && pwd)
5
6 . "$DEV/includes/require-php.sh"
7
8 set -e
9
10 PORT=4881
11
12 cd "$DEV/../../"; # $IP
13
14 mkdir -p "$DEV/data"
15 "$PHP" maintenance/install.php --server="http://localhost:$PORT" --scriptpath="" --dbtype=sqlite --dbpath="$DEV/data" --pass=admin "Trunk Test" "$USER"
16 echo ""
17 echo "Development wiki created with admin user $USER and password 'admin'."
18 echo ""