summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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