15 lines
353 B
Bash
Executable File
15 lines
353 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
# Adds the repository user
|
|
|
|
useradd --shell /bin/bash --home-dir /var/lib/vn-repo --uid 899 --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
|