From 3136a9a99ff6a91f8b4b8102211bf45eeba2a228 Mon Sep 17 00:00:00 2001 From: sasha-astiadi Date: Fri, 15 Dec 2023 20:38:43 +0100 Subject: [PATCH] fix install.sh --- install.sh | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) mode change 100644 => 100755 install.sh 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"