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
353 B
Plaintext
Raw Permalink Normal View History

2018-04-19 10:35:41 +00:00
#!/bin/bash
set -e
# Adds the repository user
2018-08-29 13:09:21 +00:00
useradd --shell /bin/bash --home-dir /var/lib/vn-repo --uid 899 --create-home vn-repo || echo "User already exists."
2018-04-19 10:35:41 +00:00
# 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