Cleanup libs before running libs/setup in init script

Summary:
Since libs/setup tries to preserve any local additions to libs
directory, any failure in doing that would cause the init script to be
left in an unfinished state. This could cause problems when rerunning
the init. In such cases, we want to completely cleanup the libs
directory and start again.

Anyone who wishes only to update the libs and preserve local additions
should manually run libs/setup.

Reviewers: mferencevic

Reviewed By: mferencevic

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D1026
This commit is contained in:
Teon Banek 2017-12-05 10:00:38 +01:00
parent c0cd9bd22b
commit 8dcd8e1012

1
init
View File

@ -104,6 +104,7 @@ mkdir -p ./build
# setup libs (download)
cd libs
./cleanup.sh
./setup.sh
cd ..