always install example configs

This commit is contained in:
Pirate Praveen 2017-09-12 18:08:23 +05:30
parent efab522bee
commit db39333642

4
debian/postinst vendored
View file

@ -47,7 +47,6 @@ gitlab_debian_defaults_copy=/var/lib/gitlab/gitlab-debian.defaults
# Bootstrap config file - first try # Bootstrap config file - first try
. ${gitlab_debian_conf_example} . ${gitlab_debian_conf_example}
# second try # second try
test -f ${gitlab_debian_conf_private} || \
cp ${gitlab_debian_conf_example} ${gitlab_debian_conf_private} cp ${gitlab_debian_conf_example} ${gitlab_debian_conf_private}
. ${gitlab_debian_conf_private} . ${gitlab_debian_conf_private}
@ -185,9 +184,7 @@ case "$1" in
mv -f ${gitlab_debian_conf_private}.tmp ${gitlab_debian_conf_private} mv -f ${gitlab_debian_conf_private}.tmp ${gitlab_debian_conf_private}
# Copy example configurations # Copy example configurations
test -f ${gitlab_yml_private} || \
cp ${gitlab_yml_example} ${gitlab_yml_private} cp ${gitlab_yml_example} ${gitlab_yml_private}
test -f ${gitlab_shell_config_private} || \
cp ${gitlab_shell_config_example} ${gitlab_shell_config_private} cp ${gitlab_shell_config_example} ${gitlab_shell_config_private}
# Set gitlab user first time # Set gitlab user first time
@ -260,7 +257,6 @@ case "$1" in
fi fi
# Manage tmpfiles.d/gitlab.conf via ucf # Manage tmpfiles.d/gitlab.conf via ucf
test -f ${gitlab_tmpfiles_private} || \
cp ${gitlab_tmpfiles_example} ${gitlab_tmpfiles_private} cp ${gitlab_tmpfiles_example} ${gitlab_tmpfiles_private}
sed -i "s/GITLAB_USER/${gitlab_user}/" ${gitlab_tmpfiles_private} sed -i "s/GITLAB_USER/${gitlab_user}/" ${gitlab_tmpfiles_private}
echo "Registering ${gitlab_tmpfiles} via ucf" echo "Registering ${gitlab_tmpfiles} via ucf"