This repository has been archived on 2020-01-17. You can view files and clone it, but cannot push or open issues or pull requests.
vn-repo/debian/postinst

15 lines
346 B
Bash
Executable File

#!/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