#!/bin/bash

set -e

type -p reprepro
type -p fs

NAME="$1"

test -d "$NAME"

pushd "$NAME"

mkdir buildlogs conf db dists incoming lists log pool tmp

fs sa -dir buildlogs -dir dists -dir log -dir pool -acl system:anyuser read

popd
