view deploy/provision.d/110-hg-testdir.sh @ 1621:3a510bf6a9bc

Merge from live branch
author Chris Cannam
date Fri, 13 Jul 2018 10:44:33 +0100
parents c18460da6620
children
line wrap: on
line source
#!/bin/bash

set -e

# In case we are running without a properly mounted /var/hg directory,
# check for the existence of one repo and, if absent, attempt to clone
# it so that we have something we can serve for test purposes.

if [ ! -d /var/hg/vamp-plugin-sdk ]; then
    echo "Cloning vamp-plugin-sdk repo for testing..."
    cd /var/hg
    hg clone https://code.soundsoftware.ac.uk/hg/vamp-plugin-sdk
    chown -R www-data.code vamp-plugin-sdk
fi