diff --git a/data/setup/dbpedia/dbpedia.sh b/data/setup/dbpedia/dbpedia.sh index a147de8f..6df72182 100644 --- a/data/setup/dbpedia/dbpedia.sh +++ b/data/setup/dbpedia/dbpedia.sh @@ -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 diff --git a/data/setup/enwiki/enwiki.sh b/data/setup/enwiki/enwiki.sh index e7d1e4f4..dd41e61a 100644 --- a/data/setup/enwiki/enwiki.sh +++ b/data/setup/enwiki/enwiki.sh @@ -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 diff --git a/data/setup/labels/label-lookup.sh b/data/setup/labels/label-lookup.sh index a2af19a6..ec4e3fb6 100644 --- a/data/setup/labels/label-lookup.sh +++ b/data/setup/labels/label-lookup.sh @@ -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 diff --git a/data/setup/labels/sqlite.sh b/data/setup/labels/sqlite.sh index b272049f..ac3aa7e0 100644 --- a/data/setup/labels/sqlite.sh +++ b/data/setup/labels/sqlite.sh @@ -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