blob: 40b5343ee5d15c19491969046aa6c2e782ecf6f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#!/bin/sh
set -e
ARCHIVE="/srv/$(hostname -f)/archive"
REPOSITORY="/srv/$(hostname -f)/packages"
VENDOR="$(hostname -d | awk -F. '{ print $1 }')"
cd "${REPOSITORY}"
if [ ! -e conf ]
then
exit 0
fi
DISTRIBUTIONS="$(awk '/^Codename: / { print $2 }' conf/distributions)"
for DISTRIBUTION in ${DISTRIBUTIONS}
do
reprepro -b "${REPOSITORY}" export ${DISTRIBUTION}
reprepro -b "${REPOSITORY}" check ${DISTRIBUTION}
done
rm -rf project
mkdir project
for ITEM in other/pgp other/ssh other/tls
do
if [ ! -e "${ARCHIVE}/${ITEM}" ]
then
continue
fi
cp -aL "${ARCHIVE}/${ITEM}" project
done
mkdir -p project/trace
echo "$(date -R)" > "project/trace/$(hostname -f).txt"
|