]> git.pld-linux.org Git - packages/php.git/commitdiff
keep backups and original files whenever it's so easy
authorTomasz Pala <gotar@pld-linux.org>
Sun, 31 May 2015 12:23:59 +0000 (14:23 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 31 May 2015 14:01:05 +0000 (17:01 +0300)
php.spec

index 44c7b3b7676b908f644522865806776a08e0e535..79b00895eee3f7c7bf4b6d770adbf303a1b18dab 100644 (file)
--- a/php.spec
+++ b/php.spec
@@ -2700,7 +2700,7 @@ fi
 %service %{name}-fpm restart
 
 %preun fpm
-if [ "$1" = 0 ]; then
+if [ "$1" = "0" ]; then
        %service %{name}-fpm stop
        /sbin/chkconfig --del %{name}-fpm
 fi
@@ -2750,8 +2750,8 @@ for f in /etc/php/*.ini.rpmsave /etc/php/*.d/*.ini.rpmsave; do
        fn=${fn%.rpmsave}
        nf=%{_sysconfdir}/$dn/$fn
        test -f "$nf" || continue
-       cp -vf $nf{,.rpmnew}
-       mv -vf $f $nf
+       cp -vfb $nf{,.rpmnew}
+       cp -vfb $f $nf
        %{__sed} -i -e '
                s#%{_libdir}/php#%{_libdir}/%{name}#
                s#/etc/php#%{_sysconfdir}#
This page took 0.060633 seconds and 4 git commands to generate.