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 / deploy / provision.d / 130-reposman.sh @ 1595:98384d0defa0

History | View | Annotate | Download (991 Bytes)

1
#!/bin/bash
2

    
3
set -e
4

    
5
# Copy reposman scripts to the place they actually live. Like docgen,
6
# this is particularly badly managed, since the target location is
7
# actually within the repo already. At least in this case some of the
8
# scripts have to be edited to insert the server's API key, so there
9
# is a bit of logic there
10

    
11
cd /var/www/code
12

    
13
mkdir -p reposman
14

    
15
for file in \
16
    convert-external-repos.rb \
17
    reposman-soundsoftware.rb \
18
    run-hginit.sh \
19
    update-external-repo.sh ; do
20
    if [ ! -f reposman/"$file" ]; then
21
        cp extra/soundsoftware/"$file" reposman/
22
    fi
23
done
24

    
25
for file in \
26
    run-external.sh \
27
    run-reposman.sh ; do
28
    if [ ! -f reposman/"$file" ]; then
29
        cp deploy/config/"$file".gen reposman/"$file"
30
    fi
31
done
32

    
33
chown code.www-data reposman/*
34
chmod +x reposman/*.sh
35
chmod +x reposman/*.rb
36

    
37
touch /var/log/reposman.log
38
touch /var/log/external-repos.log
39
chown www-data.code /var/log/reposman.log
40
chown www-data.code /var/log/external-repos.log
41