summaryrefslogtreecommitdiffstats
path: root/debian/config
blob: b0e268fd2aa3bd85cf8644aece0d0068315f1c37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh
# debian/config script for the gitolite package
# Copyright 2010-2011 by Gerfried Fuchs <rhonda@debian.org>
# Licenced under WTFPLv2

set -e
#DEBHELPER#

pkg=gitolite3

# Source debconf library.
. /usr/share/debconf/confmodule

action=$1
version=$2

if [ "$action" = "configure" -o ! -f /etc/$pkg/gitolite.rc ]; then
    # ask for user to create
    db_input medium $pkg/gituser || true
    db_go

    # ask for repository root directory to use
    db_input medium $pkg/gitdir || true
    db_go

    # ask for key of admin user (either file or direct input)
    db_input high $pkg/adminkey || true
    db_go
fi


exit 0