always install example configs
This commit is contained in:
parent
efab522bee
commit
db39333642
1 changed files with 0 additions and 4 deletions
4
debian/postinst
vendored
4
debian/postinst
vendored
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue