Forget what I did last. Was probably useful.
This commit is contained in:
parent
cc9fb054c7
commit
1bef0e814b
|
|
@ -15,13 +15,17 @@ ZFS_PATH="/srv/sites/mirrors.mgk.one/public_html/zfs/fedora/40/x86_64"
|
|||
|
||||
# Function to sync and create repo with group metadata
|
||||
sync_and_create_repo() {
|
||||
local path=$1
|
||||
local repo=$2
|
||||
local releasever=$3
|
||||
local path=$1
|
||||
local repo=$2
|
||||
local releasever=$3
|
||||
|
||||
sudo reposync -p "$path" --repo="$repo" --releasever="$releasever" --norepopath --download-metadata
|
||||
sudo createrepo_c "$path"
|
||||
sudo chown -R melkor:melkor "$path"
|
||||
sudo reposync -p "$path" --repo="$repo" --releasever="$releasever" --norepopath --download-metadata
|
||||
if [ -f "${path}/comps.xml" ]; then
|
||||
sudo createrepo_c -g "${path}/comps.xml" "$path"
|
||||
else
|
||||
sudo createrepo_c "$path"
|
||||
fi
|
||||
sudo chown -R melkor:melkor "$path"
|
||||
}
|
||||
|
||||
# Sync Fedora repository
|
||||
|
|
@ -52,7 +56,7 @@ sync_and_create_repo "$RPMFUSION_FREE_TAINTED_PATH" "rpmfusion-free-tainted" "40
|
|||
sync_and_create_repo "$RPMFUSION_NONFREE_TAINTED_PATH" "rpmfusion-nonfree-tainted" "40"
|
||||
|
||||
# Sync Tailscale Stable
|
||||
#sync_and_create_repo "$TAILSCALE_STABLE_PATH" "tailscale-stable" "40"
|
||||
sync_and_create_repo "$TAILSCALE_STABLE_PATH" "tailscale-stable" "40"
|
||||
|
||||
# Sync Starship Copr
|
||||
sync_and_create_repo "$STARSHIP_PATH" "copr:copr.fedorainfracloud.org:atim:starship" "40"
|
||||
|
|
|
|||
Loading…
Reference in a new issue