diff --git a/install.sh b/install.sh old mode 100644 new mode 100755 index 2cfcdf0..0a94bea --- a/install.sh +++ b/install.sh @@ -1,16 +1,29 @@ #!/usr/bin/env bash set -e -mkdir -p ~/.vmodules/freeflowuniverse -mkdir -p ~/code/github/freeflowuniverse -pushd ~/code/github/freeflowuniverse -git clone https://github.com/freeflowuniverse/crystallib.git +GITEA_INSTANCE_URL="https://git.ourworld.tf" +GITEA_USERNAME="threefold_coop" + +mkdir -p ~/.vmodules/freeflowuniverse +mkdir -p ~/code/gitea/$GITEA_USERNAME + +pushd ~/code/gitea/$GITEA_USERNAME + +# Clone crystallib repository from Gitea +git clone $GITEA_INSTANCE_URL/$GITEA_USERNAME/crystallib.git pushd crystallib git checkout development_db popd -ln -s ~/code/github/freeflowuniverse/crystallib/crystallib ~/.vmodules/freeflowuniverse/crystallib -git clone https://github.com/freeflowuniverse/webcomponents.git -ln -s ~/code/github/freeflowuniverse/webcomponents/webcomponents ~/.vmodules/freeflowuniverse/webcomponents +# Create symbolic link to crystallib in ~/.vmodules/freeflowuniverse +ln -s ~/code/gitea/$GITEA_USERNAME/crystallib/crystallib ~/.vmodules/freeflowuniverse/crystallib + +# Clone webcomponents repository from Gitea +git clone $GITEA_INSTANCE_URL/$GITEA_USERNAME/webcomponents.git + +# Create symbolic link to webcomponents in ~/.vmodules/freeflowuniverse +ln -s ~/code/gitea/$GITEA_USERNAME/webcomponents/webcomponents ~/.vmodules/freeflowuniverse/webcomponents + popd -echo "INSTALL OK" \ No newline at end of file + +echo "INSTALL OK"