diff options
Diffstat (limited to 'prepare-repository')
-rwxr-xr-x | prepare-repository | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/prepare-repository b/prepare-repository index 6c09bf9..c418699 100755 --- a/prepare-repository +++ b/prepare-repository @@ -2,10 +2,15 @@ . 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" "$REPO/Probes/probed.xml" -ln -sf "$REAL/Properties/secrets.xml" "$REPO/Properties/secrets.xml" +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" "$REPO/Packages/cache" -ln -sfn "$REAL/SSL/private" "$REPO/SSL/private" +ln -sfn "$REAL/Packages/cache" "$DIR/Packages/cache" +ln -sfn "$REAL/SSL/private" "$DIR/SSL/private" |