Skip to content

Commit

Permalink
Path changed to universal username
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Sep 20, 2016
1 parent ec98ee5 commit 41d6ec6
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
9 changes: 5 additions & 4 deletions data/setup/dbpedia/dbpedia.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash

username=$(whoami)
# Create directory for the data
mkdir /home/fp/docker/data/db
cp setup-jena.sh /home/fp/docker/data/db
cp fix-nt.sh /home/fp/docker/data/db
cd /home/fp/docker/data/db
mkdir /home/$username/docker/data/db
cp setup-jena.sh /home/$username/docker/data/db
cp fix-nt.sh /home/$username/docker/data/db
cd /home/$username/docker/data/db

# Download files
wget http://downloads.dbpedia.org/2014/dbpedia_2014.owl.bz2
Expand Down
5 changes: 3 additions & 2 deletions data/setup/enwiki/enwiki.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
mkdir /home/fp/docker/data/enwiki
cd /home/fp/docker/data/enwiki
username=$(whoami)
mkdir /home/$username/docker/data/enwiki
cd /home/$username/docker/data/enwiki

# Clone extractor repo
git clone https://github.com/brmson/wikipedia-extractor
Expand Down
5 changes: 3 additions & 2 deletions data/setup/labels/label-lookup.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash
username=$(whoami)
# Create directory if does not exist
mkdir /home/fp/docker/data
cd /home/fp/docker/data
mkdir /home/$username/docker/data
cd /home/$username/docker/data

# Clone repo
git clone https://github.com/brmson/label-lookup.git
Expand Down
7 changes: 4 additions & 3 deletions data/setup/labels/sqlite.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/bin/bash
username=$(whoami)
# Create directory if does not exist
mkdir /home/fp/docker/data
cp lookup-lite.sh /home/fp/docker/data
cd /home/fp/docker/data
mkdir /home/$username/docker/data
cp lookup-lite.sh /home/$username/docker/data
cd /home/$username/docker/data

# Clone repo
git clone https://github.com/brmson/label-lookup.git
Expand Down

0 comments on commit 41d6ec6

Please sign in to comment.