jailsetup.sh: improve chroot etc/girocco/.gitconfig handling
commit183df9e87cdeec1cad94ee8a31527ee20bd975cb
authorKyle J. McKay <mackyle@gmail.com>
Tue, 23 Aug 2016 23:09:25 +0000 (23 16:09 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 23 Aug 2016 23:09:25 +0000 (23 16:09 -0700)
tree7e7d29aaa3be8d1cd806973e3840a430efa937aa
parent16a1d5ec36589aee7e595823da19932a299d02e5
jailsetup.sh: improve chroot etc/girocco/.gitconfig handling

Make sure that if the file already exists it's in a format that will not
cause Git to complain.

Add a nice comment when initializing the file for the first time.

Set the default variables whenever they are unset in the file.

Always update crucial variables in the file if necessary.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
jailsetup.sh