#!/bin/bash set -e # Adds the repository user useradd --shell /bin/bash --home-dir /var/cache/reprepro --create-home vn-repo || echo "User already exists." # Enables Apache configuration if [ -e /usr/share/apache2/apache2-maintscript-helper ] then . /usr/share/apache2/apache2-maintscript-helper apache2_invoke enconf vn-repo.conf fi