# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-set -e
set -u
+. /etc/staticsync.conf
+if ! [ -n "$base" ]; then
+ echo >&2 "base not configured!"
+ exit 1
+fi
+
awk -v host="$(hostname -f)" '
!/^ *(#|$)/ {
split($6,ignorehosts,",")
print $1, $2
}' /etc/static-components.conf |
while read master component ; do
- static-mirror-run --one-stage "/srv/static.debian.org/mirrors/$component" "$master:$component/-live-"
+ static-mirror-run --one-stage "$base/mirrors/$component" "$master:$component/-live-"
done