amprolla

devuan's apt repo merger
git clone git://parazyd.org/amprolla.git
Log | Files | Refs | README | LICENSE

commit 972453027fcf40b23f5603c8111fe0a268ce558d
parent a0b382bf60dfba2066a795a91fba4ad3b7339f2f
Author: parazyd <parazyd@dyne.org>
Date:   Wed, 28 Jun 2017 20:39:38 +0200

add helper script to populate suite aliases/symlinks

Diffstat:
MREADME.md | 13+++++++++++--
Acontrib/populate_aliases.sh | 28++++++++++++++++++++++++++++
2 files changed, 39 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md @@ -41,8 +41,17 @@ Copy `lib/config.def.py` to `lib/config.py` and edit `lib/config.py` to your needs, and then run `amprolla_init.py`. This will download the repositories we will merge afterwards. When this is done, you can run `amprolla_merge.py` which will perform the actual merge, and finally -sign the Release files needed. To perform incremental updates, run -`amprolla_update.py` with a cron job in your desired intervals. +sign the Release files needed. The first time this is done, it is +advisable to run the script found in `contrib/populate_aliases.sh` so +it can fill in the needed symlinks to the different suites. Make sure +you set the correct path in the script. + +To perform incremental updates, run `orchestrate.sh` with a cron job +in your desired intervals. Edit the script to set the correct paths. + +**NOTE:** in the current testing phase, `orchestrate.sh` contains a while +loop in order to be ran in tmux to catch unhandled exceptions and fix +the codebase. An `nginx` configuration for the amprolla server can be found in `contrib`. diff --git a/contrib/populate_aliases.sh b/contrib/populate_aliases.sh @@ -0,0 +1,28 @@ +#!/bin/sh +# helper script to be ran once after the initial mass merge in order +# to populate the structure with the needed symlinks + +# make sure these correlate to lib/config.py +REPO_ROOT=/srv/amprolla + +REPOS=" + backports + proposed-updates + security + updates +" + +cd "$REPO_ROOT"/merged-volatile/dists + +for i in $REPOS; do + ln -snfv "ascii-$i" "testing-$i" + ln -snfv "jessie-$i" "stable-$i" +done + +ln -snfv "ascii" "testing" +ln -snfv "jessie" "stable" +ln -snfv "unstable" "ceres" +ln -snfv "jessie" "1.0" +ln -snfv "ascii" "2.0" + +cd - >/dev/null