From e07a62d4886b105b8d129c9b1e4f638a45a9e3cc Mon Sep 17 00:00:00 2001 From: Niels Geens Date: Tue, 29 Apr 2025 14:56:52 +0000 Subject: [PATCH] Simplified bootstrap --- scripts/bootstrap.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index a6967e5..0abe00a 100755 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -4,9 +4,6 @@ #SIA_INSTALL_NO_TRAIN=1 #SIA_INSTALL_NO_NOTEBOOK=1 #SIA_INSTALL_NO_CORE=1 -#SIA_BOOTSTRAP_NO_CHROME=1 -#SIA_BOOTSTRAP_NO_RUST=1 -#SIA_BOOTSTRAP_NO_WEB=1 #SIA_BOOTSTRAP_NO_TRAIN=1 #SIA_BOOTSTRAP_NO_START=1 @@ -41,7 +38,7 @@ apt-get install -y \ ; # Install Chrome -if [ -z "${SIA_BOOTSTRAP_NO_CHROME}" ]; then +if [ -z "${SIA_INSTALL_NO_ITB}" ]; then wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list apt-get update && \ @@ -50,13 +47,13 @@ if [ -z "${SIA_BOOTSTRAP_NO_CHROME}" ]; then fi # Install Rust -if [ -z "${SIA_BOOTSTRAP_NO_RUST}" ]; then +if [ -z "${SIA_INSTALL_NO_TRAIN}" ]; then curl https://sh.rustup.rs -sSf | bash -s -- -y export PATH="/root/.cargo/bin:${PATH}" fi # Install Node.js -if [ -z "${SIA_BOOTSTRAP_NO_WEB}" ]; then +if [ -z "${SIA_INSTALL_NO_CORE}" ]; then echo "Installing Node.js..." curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash export NVM_DIR="/root/.nvm" @@ -83,7 +80,7 @@ if [ ! -d "/root/sia" ]; then fi # Build web interface -if [ -z "${SIA_BOOTSTRAP_NO_WEB}" ]; then +if [ -z "${SIA_INSTALL_NO_CORE}" ]; then echo "Building web interface" cd "/root/sia/web" npm install @@ -119,4 +116,4 @@ fi if [ -z "${SIA_BOOTSTRAP_NO_START}" ]; then echo "Run restart script..." "/root/sia/scripts/restart.sh" -if [ -z "${SIA_BOOTSTRAP_NO_TRAIN}" ]; then \ No newline at end of file +fi \ No newline at end of file