Bug 1524031

Summary: rootfs-resize has copy-pasto in scriptlet
Product: [Fedora] Fedora Reporter: Zbigniew Jędrzejewski-Szmek <zbyszek>
Component: rootfs-resizeAssignee: Chris Tyler <ctyler.fedora>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: ctyler.fedora, redhat-bugzilla
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rootfs-resize-2.0-10.fc27 rootfs-resize-2.0-10.fc26 rootfs-resize-2.0-10.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-12 11:26:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Zbigniew Jędrzejewski-Szmek 2017-12-09 14:04:24 UTC
Description of problem:
$ rpm -q --scripts rootfs-resize
postinstall scriptlet (using /bin/sh):

if [ $1 -eq 1 ] ; then 
        # Initial installation 
        systemctl --no-reload preset rootfs-resize.service >/dev/null 2>&1 || : 
fi
preuninstall scriptlet (using /bin/sh):

if [ $1 -eq 0 ] ; then 
        # Package removal, not upgrade 
        systemctl --no-reload disable --now rootfs-resize.service > /dev/null 2>&1 || : 
fi
postuninstall scriptlet (using /bin/sh):

if [ $1 -ge 1 ] ; then 
        # Package upgrade, not uninstall 
        systemctl try-restart apache-httpd.service >/dev/null 2>&1 || : 
                              ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
fi

Version-Release number of selected component (if applicable):
rootfs-resize-2.0-9.fc27.noarch

Comment 1 Fedora Update System 2017-12-10 02:04:36 UTC
rootfs-resize-2.0-10.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-2eb4cd9f99

Comment 2 Fedora Update System 2017-12-10 02:05:42 UTC
rootfs-resize-2.0-10.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-9e46cbb0d2

Comment 3 Fedora Update System 2017-12-10 02:06:46 UTC
rootfs-resize-2.0-10.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-a7da43ae6f

Comment 4 Fedora Update System 2017-12-10 21:48:33 UTC
rootfs-resize-2.0-10.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-2eb4cd9f99

Comment 5 Fedora Update System 2017-12-10 22:01:22 UTC
rootfs-resize-2.0-10.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-a7da43ae6f

Comment 6 Fedora Update System 2017-12-11 00:19:05 UTC
rootfs-resize-2.0-10.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-9e46cbb0d2

Comment 7 Fedora Update System 2017-12-12 11:26:41 UTC
rootfs-resize-2.0-10.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2017-12-18 20:31:04 UTC
rootfs-resize-2.0-10.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2017-12-25 18:37:53 UTC
rootfs-resize-2.0-10.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.