Skip to content

lug: apt mirror script#394

Merged
PhotonQuantum merged 2 commits intosjtug:mainfrom
PhotonQuantum:lug-apt-mirror
Jun 7, 2023
Merged

lug: apt mirror script#394
PhotonQuantum merged 2 commits intosjtug:mainfrom
PhotonQuantum:lug-apt-mirror

Conversation

@PhotonQuantum
Copy link
Copy Markdown
Member

As per sjtug/mirror-requests#79 (comment), we need an apt-mirror script to sync apt repositories from HTTP upstream.

An example config:

source: https://apt.pop-os.org
name: popos
arch: all,arm64,amd64
repo: release:jammy:main,release:impish:main
path: /some/path/popos
apt_mirror_path: /some/path/apt_mirror_path

mirror, skel and var directories will be created under apt_mirror_path, and the mirror directory will be symlinked to path. apt_mirror_path should never be cleaned manually, which apt-mirror handles.

Potential problem: does Caddy follow root path symlink? Say caddy is serving /some/path while /some/path itself is a symlink to another directory.

@PhotonQuantum PhotonQuantum requested a review from skyzh June 2, 2023 09:04
@PhotonQuantum PhotonQuantum merged commit 5a83c03 into sjtug:main Jun 7, 2023
@PhotonQuantum PhotonQuantum deleted the lug-apt-mirror branch June 7, 2023 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants