fix install.sh

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

29
install.sh Normal file → Executable file
View File

@ -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"
echo "INSTALL OK"