summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Berto <roberto.berto@under.com.br>2024-06-08 17:24:13 -0300
committerRoberto Berto <roberto.berto@under.com.br>2024-06-08 17:24:13 -0300
commit8dc408ef85b48bcd25f61297f570b306d173b346 (patch)
tree60e14adb73a870ab8185960ca2edc382df3c17ed
parent174fb93d9e1922891cf8ce2dd9b71978484750ad (diff)
downloadvyos-apt-8dc408ef85b48bcd25f61297f570b306d173b346.tar.gz
vyos-apt-8dc408ef85b48bcd25f61297f570b306d173b346.zip
updates scripts to use docker
-rw-r--r--scripts/update_repo.sh16
-rw-r--r--scripts/upload_repo.sh2
2 files changed, 11 insertions, 7 deletions
diff --git a/scripts/update_repo.sh b/scripts/update_repo.sh
index 606bf43..25638fa 100644
--- a/scripts/update_repo.sh
+++ b/scripts/update_repo.sh
@@ -2,20 +2,24 @@
set -e
+# Define the working directory
WORKDIR=$(pwd)
+# Define the APT repository directory
REPO_DIR="$WORKDIR/apt-repo"
-# create necessary directories
-mkdir -p "$REPO_DIR/{conf,dists,incoming,indices,pool,db}"
+# Create necessary directories
+mkdir -p "$REPO_DIR/conf"
+mkdir -p "$REPO_DIR/dists/debian-12/main/binary-amd64"
+mkdir -p "$REPO_DIR/pool/main"
-# repo configuration
+# Configuration of the APT repository
cat > "$REPO_DIR/conf/distributions" <<EOF
-Codename: focal
+Codename: debian-12
Suite: stable
Components: main
Architectures: amd64
EOF
-# add packages to the repo
-reprepro -b "$REPO_DIR" includedeb focal "$WORKDIR/output/*.deb"
+# Add packages to the repository
+reprepro -b "$REPO_DIR" includedeb debian-12 "$WORKDIR/output/*.deb"
diff --git a/scripts/upload_repo.sh b/scripts/upload_repo.sh
index 3945c7d..0638656 100644
--- a/scripts/upload_repo.sh
+++ b/scripts/upload_repo.sh
@@ -19,4 +19,4 @@ fi
export AWS_PROFILE=$AWS_PROFILE
# Upload the APT repository to Cloudflare R2
-aws s3 sync "$WORKDIR/apt-repo" "s3://$BUCKET_NAME" --delete \ No newline at end of file
+aws s3 sync "$WORKDIR/apt-repo" "s3://$BUCKET_NAME" --delete