fix install.sh

This commit is contained in:
sasha-astiadi 2023-12-15 20:38:43 +01:00
parent 52143dfff8
commit 3136a9a99f

25
install.sh Normal file → Executable file
View File

@ -1,16 +1,29 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -e set -e
GITEA_INSTANCE_URL="https://git.ourworld.tf"
GITEA_USERNAME="threefold_coop"
mkdir -p ~/.vmodules/freeflowuniverse mkdir -p ~/.vmodules/freeflowuniverse
mkdir -p ~/code/github/freeflowuniverse mkdir -p ~/code/gitea/$GITEA_USERNAME
pushd ~/code/github/freeflowuniverse
git clone https://github.com/freeflowuniverse/crystallib.git pushd ~/code/gitea/$GITEA_USERNAME
# Clone crystallib repository from Gitea
git clone $GITEA_INSTANCE_URL/$GITEA_USERNAME/crystallib.git
pushd crystallib pushd crystallib
git checkout development_db git checkout development_db
popd popd
ln -s ~/code/github/freeflowuniverse/crystallib/crystallib ~/.vmodules/freeflowuniverse/crystallib
git clone https://github.com/freeflowuniverse/webcomponents.git # Create symbolic link to crystallib in ~/.vmodules/freeflowuniverse
ln -s ~/code/github/freeflowuniverse/webcomponents/webcomponents ~/.vmodules/freeflowuniverse/webcomponents 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 popd
echo "INSTALL OK" echo "INSTALL OK"