From bd33a61a8861f823873b07d49d5ef9e3b6205d4a Mon Sep 17 00:00:00 2001 From: Athos Ribeiro Date: Tue, 28 Jul 2015 17:24:08 -0300 Subject: [PATCH] Update Noosfero package --- noosfero/noosfero.spec | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/noosfero/noosfero.spec b/noosfero/noosfero.spec index b3b7379..bc6bfc3 100644 --- a/noosfero/noosfero.spec +++ b/noosfero/noosfero.spec @@ -2,8 +2,8 @@ %define cache_dirs javascripts/cache stylesheets/cache Name: noosfero -Version: 1.2~rc0 -Release: 2%{?dist} +Version: 1.2~rc1+spb1 +Release: 1%{?dist} Summary: Social Networking Platform Group: Applications/Publishing License: AGPLv3 @@ -104,6 +104,12 @@ NOOSFERO_USER="noosfero" NOOSFERO_DATA_DIR="/var/lib/noosfero" EOF +%pre +if [ $1 -gt 1 ]; then + echo 'Stopping noosfero' + systemctl stop noosfero +fi + %post groupadd noosfero || true if ! id noosfero; then @@ -136,6 +142,12 @@ if [ -x /usr/bin/postgres ]; then su noosfero -c "RAILS_ENV=production bundle exec rake db:data:minimal" fi +if [ $1 -gt 1 ]; then + echo 'Starting noosfero' + systemctl daemon-reload + systemctl start noosfero & +fi + %preun service noosfero stop chkconfig --del noosfero -- libgit2 0.21.2