6146b3350e1aafb17341d55b3aa4bd08fd99cdc4
[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 set -e
7
8 PORT=4881
9
10 cd $DEV/../../; # $IP
11
12 mkdir $DEV/data
13 $DEV/php/bin/php maintenance/install.php --server="http://localhost:$PORT" --scriptpath="" --dbtype=sqlite --dbpath=$DEV/data --pass=admin "Trunk Test" $USER
14 echo ""
15 echo "Development wiki created with admin user $USER and password 'admin'."
16 echo ""