aboutsummaryrefslogtreecommitdiff
path: root/new_kresus.sh
blob: 90d281cf4a99e98dfa02495ce684ec8f88eb7083 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
usage () {
 echo "You must set a $1 !"
 echo "Usage:"
 echo "    new_kresus.sh <user> <password>"
 exit 0
}

if [ -z $1 ]; then
 usage "USER"
elif [ -z $2 ]; then
 usage "PASSWORD"
fi


USER=$1
PASS=$2
git clone https://framagit.org/bnjbvr/kresus.git $USER.kresus.neodarz.net
cd $USER.kresus.neodarz.net; npm install; npm install leveldown@1.5.0; ./scripts/build.sh
htpasswd -Bb -c .htpasswd $USER $PASS