Simplified bootstrap

This commit is contained in:
2025-04-29 14:56:52 +00:00
parent 3557270c89
commit e07a62d488

View File

@@ -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
fi