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

. $(dirname $0)/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"