mirror of
https://github.com/BillyOutlast/ProxmoxVE.git
synced 2026-10-11 21:29:59 +00:00
fix: source cargo env to make cargo available in current shell
This commit is contained in:
+2
-4
@@ -63,7 +63,8 @@ function update_script() {
|
||||
msg_info "Installing Dependencies"
|
||||
cd /opt/drop || exit
|
||||
export PNPM_HOME="/root/.local/share/pnpm"
|
||||
export PATH="/root/.cargo/bin:$PNPM_HOME:$PATH"
|
||||
export PATH="$PNPM_HOME:$PATH"
|
||||
source /root/.cargo/env
|
||||
$STD pnpm install
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
@@ -74,14 +75,11 @@ function update_script() {
|
||||
|
||||
msg_info "Building Torrential"
|
||||
cd /opt/drop/torrential || exit
|
||||
export PATH="/root/.cargo/bin:$PATH"
|
||||
$STD cargo build --release
|
||||
msg_ok "Built Torrential"
|
||||
|
||||
msg_info "Running Database Migrations"
|
||||
cd /opt/drop || exit
|
||||
export PNPM_HOME="/root/.local/share/pnpm"
|
||||
export PATH="/root/.cargo/bin:$PNPM_HOME:$PATH"
|
||||
$STD npm install [email protected] dotenv
|
||||
source /opt/drop/.env
|
||||
$STD npx prisma migrate deploy
|
||||
|
||||
+12
-6
@@ -23,7 +23,8 @@ $STD apt install -y \
|
||||
build-essential \
|
||||
pkg-config \
|
||||
libssl-dev \
|
||||
libpq-dev
|
||||
libpq-dev \
|
||||
curl
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
# =============================================================================
|
||||
@@ -37,6 +38,16 @@ PG_DB_NAME="drop" PG_DB_USER="drop" setup_postgresql_db
|
||||
|
||||
get_lxc_ip
|
||||
|
||||
# =============================================================================
|
||||
# INSTALL RUST
|
||||
# =============================================================================
|
||||
|
||||
msg_info "Installing Rust"
|
||||
$STD curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||
# Source the cargo environment to make cargo available in current shell
|
||||
source /root/.cargo/env
|
||||
msg_ok "Installed Rust"
|
||||
|
||||
# =============================================================================
|
||||
# DOWNLOAD & BUILD APPLICATION
|
||||
# =============================================================================
|
||||
@@ -63,11 +74,6 @@ msg_ok "Built Drop Application"
|
||||
# BUILD TORRENTIAL (Rust component)
|
||||
# =============================================================================
|
||||
|
||||
msg_info "Installing Rust"
|
||||
$STD curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||
export PATH="/root/.cargo/bin:$PATH"
|
||||
msg_ok "Installed Rust"
|
||||
|
||||
msg_info "Building Torrential"
|
||||
cd /opt/drop/torrential || exit
|
||||
$STD cargo build --release
|
||||
|
||||
Reference in New Issue
Block a user