lesavka: route installer temp files off /tmp

This commit is contained in:
Brad Stein 2026-04-16 13:57:47 -03:00
parent 43784cc152
commit b836ebbbf7
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ fi
# 4. build
log "4. Building client release binary"
sudo -u "$ORIG_USER" bash -c "cd '$SRC/client' && cargo clean && cargo build --release"
sudo -u "$ORIG_USER" env TMPDIR="$TMPDIR" bash -c "cd '$SRC/client' && cargo clean && cargo build --release"
# 5. install binary
log "5. Installing launchable client binaries"

View File

@ -160,7 +160,7 @@ else
fi
echo "==> 4c. Source build"
sudo -u "$ORIG_USER" bash -c "cd '$SRC_DIR/server' && cargo clean && cargo build --release --bins"
sudo -u "$ORIG_USER" env TMPDIR="$TMPDIR" bash -c "cd '$SRC_DIR/server' && cargo clean && cargo build --release --bins"
echo "==> 5. Install binaries"
sudo install -Dm755 "$SRC_DIR/target/release/lesavka-server" /usr/local/bin/lesavka-server