To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / extra / soundsoftware / scripted-deploy / vagrant / provision.d / 040-hg-dir.sh @ 1583:0dcd4f8c2b8a

History | View | Annotate | Download (547 Bytes)

1 1577:e38eee2e1d47 Chris
#!/bin/bash
2
3
set -e
4
5
if [ ! -f /var/hg/index.cgi ]; then
6
    mkdir -p /var/hg
7
    chown code.www-data /var/hg
8
    chmod g+s /var/hg
9 1581:ae8043b014c7 Chris
    cp /var/www/code/extra/soundsoftware/scripted-deploy/config/index.cgi /var/hg/
10
    cp /var/www/code/extra/soundsoftware/scripted-deploy/config/hgweb.config /var/hg/
11 1577:e38eee2e1d47 Chris
    chmod +x /var/hg/index.cgi
12
fi
13
14 1578:06ca2df3d7ca Chris
if [ ! -d /var/hg/vamp-plugin-sdk ]; then
15
    # This project can be used for testing
16
    cd /var/hg
17
    hg clone https://code.soundsoftware.ac.uk/hg/vamp-plugin-sdk
18
    chown -R code.www-data vamp-plugin-sdk
19
fi