Difference between revisions of "Misc"
Jump to navigation
Jump to search
(Created page with "``` #!/bin/bash REPO_ROOT="/var/www/html/my-debian-repo" DISTRIBUTION="stable" COMPONENT="main" ARCHITECTURE="amd64" POOL_DIR="${REPO_ROOT}/pool/${COMPONENT}" DEB_FILE="deb/my...") |
(No difference)
|
Revision as of 17:02, 24 August 2025
#!/bin/bash REPO_ROOT="/var/www/html/my-debian-repo" DISTRIBUTION="stable" COMPONENT="main" ARCHITECTURE="amd64" POOL_DIR="${REPO_ROOT}/pool/${COMPONENT}" DEB_FILE="deb/my-app.deb" BINARY_DIR="dists/${DISTRIBUTION}/${COMPONENT}/binary-${ARCHITECTURE}" mkdir -p "${POOL_DIR}" cp "${DEB_FILE}" "${POOL_DIR}/" pushd "${REPO_ROOT}" > /dev/null mkdir -p "${BINARY_DIR}" apt-ftparchive packages "pool" > "${BINARY_DIR}/Packages" gzip -9c "${BINARY_DIR}/Packages" > "${BINARY_DIR}/Packages.gz" apt-ftparchive release "dists/${DISTRIBUTION}" > "dists/${DISTRIBUTION}/Release" popd > /dev/null
```server {
listen 80; server_name repo.example.com; root /var/www/html/my-debian-repo; autoindex on; location / { try_files $uri $uri/ =404; }
}
<br />```echo "deb http://repo.example.com stable main" | sudo tee /etc/apt/sources.list.d/my-app.list sudo apt update
<br /><br /><br /><br /><br /><br />