added url

This commit is contained in:
Brad Stein 2025-06-01 22:12:09 -05:00
parent 8ebb9a852b
commit 3d179146b7

View File

@ -17,6 +17,7 @@ sudo -u "$ORIG_USER" rustup default stable
# 3. writable build tree under /var/src (create once, chown to user) # 3. writable build tree under /var/src (create once, chown to user)
SRC_DIR=/var/src/navka SRC_DIR=/var/src/navka
REPO_URL=ssh://git@scm.bstein.dev:2242/brad_stein/navka.git
if [[ ! -d $SRC_DIR ]]; then if [[ ! -d $SRC_DIR ]]; then
sudo mkdir -p /var/src sudo mkdir -p /var/src
sudo chown "$ORIG_USER":"$ORIG_USER" /var/src sudo chown "$ORIG_USER":"$ORIG_USER" /var/src
@ -24,7 +25,7 @@ fi
if [[ -d $SRC_DIR/.git ]]; then if [[ -d $SRC_DIR/.git ]]; then
sudo -u "$ORIG_USER" git -C "$SRC_DIR" pull --ff-only sudo -u "$ORIG_USER" git -C "$SRC_DIR" pull --ff-only
else else
sudo -u "$ORIG_USER" git clone "$PWD" "$SRC_DIR" sudo -u "$ORIG_USER" git clone "$REPO_URL" "$SRC_DIR"
fi fi
# 4. build (as the normal user avoids root-owned Cargo.lock) # 4. build (as the normal user avoids root-owned Cargo.lock)