diff --git a/Makefile b/Makefile index cb13174d6..be076bf10 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ NAME = rmt-server -VERSION = 1.0.3 +VERSION = 1.0.4 all: @: diff --git a/lib/rmt.rb b/lib/rmt.rb index fb96a2a11..ddddb5628 100644 --- a/lib/rmt.rb +++ b/lib/rmt.rb @@ -1,5 +1,5 @@ module RMT - VERSION ||= '1.0.3'.freeze + VERSION ||= '1.0.4'.freeze DEFAULT_USER = '_rmt'.freeze DEFAULT_GROUP = 'nginx'.freeze diff --git a/package/rmt-server.spec b/package/rmt-server.spec index 4756c1682..226822579 100644 --- a/package/rmt-server.spec +++ b/package/rmt-server.spec @@ -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 @@ -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