aboutsummaryrefslogtreecommitdiff
path: root/new_kresus.sh
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2017-08-02 01:13:11 +0200
committerneodarz <neodarz@neodarz.net>2017-08-02 01:13:11 +0200
commitb2653d82830b90512206d5ef7e2973af18e2400d (patch)
tree29aac8318b6a2cd706c235abbf91126e4060c242 /new_kresus.sh
downloadkresus-gen-b2653d82830b90512206d5ef7e2973af18e2400d.tar.xz
kresus-gen-b2653d82830b90512206d5ef7e2973af18e2400d.zip
initial commit
Diffstat (limited to '')
-rwxr-xr-xnew_kresus.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/new_kresus.sh b/new_kresus.sh
new file mode 100755
index 0000000..90d281c
--- /dev/null
+++ b/new_kresus.sh
@@ -0,0 +1,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