[packages/gitlab-shell] add banner how to rebuild authorized_keys file

glen glen at pld-linux.org
Sun May 15 11:52:48 CEST 2016


commit fff2cd7ac1252375e1797e96596856c3b760ae5d
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun May 15 12:51:29 2016 +0300

    add banner how to rebuild authorized_keys file

 gitlab-shell.spec | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/gitlab-shell.spec b/gitlab-shell.spec
index 43f16b5..3cde0b2 100644
--- a/gitlab-shell.spec
+++ b/gitlab-shell.spec
@@ -17,6 +17,7 @@ BuildRequires:	rpmbuild(macros) >= 1.665
 BuildRequires:	sed >= 4.0
 Provides:	group(%{gname})
 Provides:	user(%{uname})
+Conflicts:	gitlab-ce < 8.7.5-0.17
 Requires(postun):	/usr/sbin/groupdel
 Requires(postun):	/usr/sbin/userdel
 Requires(pre):	/bin/id
@@ -76,10 +77,15 @@ rm -rf $RPM_BUILD_ROOT
 %useradd -u %{uid} -c 'Git user' -d %{homedir} -g git -s /bin/false %{uname}
 
 %post
-if [ $1 -eq 1 ]; then
-	echo "INFO: after installing gitlab run:"
-	echo "      sudo -u gitlab -H bundle exec rake gitlab:shell:setup RAILS_ENV=production"
-fi
+%banner -o -e %{name} <<EOF
+
+To rebuild authorized_keys file, run:
+
+  # gitlab-rake gitlab:shell:setup
+
+http://docs.gitlab.com/ce/raketasks/maintenance.html#rebuild-authorized_keys-file
+
+EOF
 
 %postun
 if [ "$1" = "0" ]; then
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gitlab-shell.git/commitdiff/fff2cd7ac1252375e1797e96596856c3b760ae5d



More information about the pld-cvs-commit mailing list