summaryrefslogtreecommitdiffstats
path: root/prepare-repository
blob: c4186999cc001ee2fc40fb1ba70c4d15fdc69ef8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#/bin/sh

. settings.sh

DIR="$REPO"
if [ -n "$1" -a -d "$1" ]; then
    DIR="$1"
fi

# update symlinks (needed for repo validation)
ln -sf "$REAL/Probes/probed.xml" "$DIR/Probes/probed.xml"
ln -sf "$REAL/Properties/secrets.xml" "$DIR/Properties/secrets.xml"

# update directory symlinks (with --no-dereference)
ln -sfn "$REAL/Packages/cache" "$DIR/Packages/cache"
ln -sfn "$REAL/SSL/private" "$DIR/SSL/private"