Skip to content

Commit

Permalink
Merge pull request #200 from SUSE/post-upgrade-msg
Browse files Browse the repository at this point in the history
Show post-install message only on initial install
  • Loading branch information
fschueller authored Jul 6, 2018
2 parents aa7c80c + 39496ce commit 7e758f5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
NAME = rmt-server
VERSION = 1.0.3
VERSION = 1.0.4

all:
@:
Expand Down
2 changes: 1 addition & 1 deletion lib/rmt.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module RMT
VERSION ||= '1.0.3'.freeze
VERSION ||= '1.0.4'.freeze

DEFAULT_USER = '_rmt'.freeze
DEFAULT_GROUP = 'nginx'.freeze
Expand Down
6 changes: 6 additions & 0 deletions package/rmt-server.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jul 4 15:32:13 UTC 2018 - [email protected]

- Version 1.0.4
- Only show post-install message on initial install

-------------------------------------------------------------------
Wed Jun 27 12:18:16 UTC 2018 - [email protected]

Expand Down
6 changes: 4 additions & 2 deletions package/rmt-server.spec
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
%define is_sle_12_family 1
%endif
Name: rmt-server
Version: 1.0.3
Version: 1.0.4
Release: 0
Summary: Repository mirroring tool and registration proxy for SCC
License: GPL-2.0-or-later
Expand Down Expand Up @@ -219,7 +219,9 @@ getent passwd %{rmt_user} >/dev/null || \
%service_add_post rmt-server.target rmt-server.service rmt-server-migration.service rmt-server-mirror.service rmt-server-sync.service
cd %{_datadir}/rmt && runuser -u %{rmt_user} -g %{rmt_group} -- bin/rails secrets:setup >/dev/null
cd %{_datadir}/rmt && runuser -u %{rmt_user} -g %{rmt_group} -- bin/rails runner -e production "Rails::Secrets.write({'production' => {'secret_key_base' => SecureRandom.hex(64)}}.to_yaml)" >/dev/null
echo "Please run the YaST RMT module (or 'yast2 rmt' from the command line) to complete the configuration of your RMT" >> /dev/stdout
if [ $1 -eq 1 ] ; then
echo "Please run the YaST RMT module (or 'yast2 rmt' from the command line) to complete the configuration of your RMT" >> /dev/stdout
fi

%preun
%service_del_preun rmt-server.target rmt-server.service rmt-server-migration.service rmt-server-mirror.service rmt-server-sync.service
Expand Down

0 comments on commit 7e758f5

Please sign in to comment.