diff --git a/389-ds-base.spec b/389-ds-base.spec index ec02985..b7e5d3a 100644 --- a/389-ds-base.spec +++ b/389-ds-base.spec @@ -34,7 +34,7 @@ Summary: 389 Directory Server (base) Name: 389-ds-base Version: 1.3.5.17 -Release: %{?relprefix}3%{?prerel}%{?dist} +Release: %{?relprefix}3%{?prerel}%{?dist}.1 License: GPLv3+ URL: http://www.port389.org/ Group: System Environment/Daemons @@ -329,11 +329,15 @@ if ! getent passwd $USERNAME >/dev/null ; then fi fi -echo looking for services in %{_sysconfdir}/systemd/system/%{groupname}.wants/* >> $output 2>&1 || : -for service in %{_sysconfdir}/systemd/system/%{groupname}.wants/* ; do - if [ ! -f "$service" ] ; then continue ; fi # in case nothing matches - inst=`echo $service | sed -e 's,%{_sysconfdir}/systemd/system/%{groupname}.wants/,,'` - echo found instance $inst - getting status >> $output 2>&1 || : +echo looking for instances in %{_sysconfdir}/%{pkgname} > $output 2>&1 || : +instbase="%{_sysconfdir}/%{pkgname}" +for dir in $instbase/slapd-* ; do + echo dir = $dir >> $output 2>&1 || : + if [ ! -d "$dir" ] ; then continue ; fi + case "$dir" in *.removed) continue ;; esac + basename=`basename $dir` + inst="%{pkgname}@`echo $basename | sed -e 's/slapd-//g'`" + echo found instance $inst - getting status >> $output 2>&1 || : if /bin/systemctl -q is-active $inst ; then echo instance $inst is running >> $output 2>&1 || : instances="$instances $inst" @@ -454,6 +458,9 @@ fi %{_sysconfdir}/%{pkgname}/dirsrvtests %changelog +* Tue Jun 6 2017 Mark Reynolds - 1.3.5.17-3.1 +- Revise upgrade logic + * Wed Apr 26 2017 Mark Reynolds - 1.3.5.17-3 - Bump version to 1.3.5.17-3 - Fix improper backport to specfile