| 12
 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
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 
 | #!/bin/sh
set -e
. /usr/share/debconf/confmodule
_CONFFILE="/etc/default/git-stuff"
_CRONFILE="/etc/cron.d/git-stuff"
if [ -e "${_CONFFILE}" ]
then
	. ${_CONFFILE} || true
	db_set git-repack-repositories/enable "${GIT_REPACK_REPOSITORIES_ENABLE}"
	db_fset git-repack-repositories/enable seen false
	db_set git-repack-repositories/directories "${GIT_REPACK_REPOSITORIES_DIRECTORIES}"
	db_fset git-repack-repositories/directories seen false
fi
if [ -e "${_CRONFILE}" ]
then
	GIT_REPACK_REPOSITORIES_CRON="$(grep '/usr/bin/git-repack-repositories' ${_CRONFILE} | sed -e 's|root.*$||')"
	db_set git-repack-repositories/cron "${GIT_REPACK_REPOSITORIES_CRON}"
	db_fset git-repack-repositories/cron seen false
fi
db_settitle git-repack-repositories/title
db_input low git-repack-repositories/enable || true
db_go
db_get git-repack-repositories/enable
GIT_REPACK_REPOSITORIES_ENABLE="${RET}"
if [ "${GIT_REPACK_REPOSITORIES_ENABLE}" = "true" ]
then
	db_settitle git-repack-repositories/title
	db_input low git-repack-repositories/directories || true
	db_settitle git-repack-repositories/title
	db_input low git-repack-repositories/cron || true
	db_go
fi
db_settitle git-stuff/title
db_input low git-stuff/bash-profile || true
db_go
db_stop
 |