]> git.pld-linux.org Git - packages/rpm-pld-macros.git/commitdiff
- fix webapps module restart auto/th/rpm-build-macros-1_306-1
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 12 Jun 2006 09:37:16 +0000 (09:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm.macros -> 1.307

rpm.macros

index 1bbd26006434c1b6959046c00af37b3435a24351..3b36b90f860da53f2ba3b48bbd63a19f5cc1ab9e 100644 (file)
@@ -744,7 +744,7 @@ if [ "$1" = "1" ] && [ "$2" = "1" ]; then\
        /usr/sbin/webapp register %1 %2\
 fi\
 # reload webserver if the config symlink is there and skip reload if webserver is upgraded\
-if [ -L /etc/%1/webapps.d/%2.conf ] && [ "$2" -lt "2" ]; then\
+if [ -L /etc/%1/webapps.d/%(echo "%2" | tr '/' '-').conf ] && [ "$2" -lt "2" ]; then\
        %{expand:%service -q %%1 reload}\
 fi\
 %{nil}
@@ -755,7 +755,7 @@ fi\
 %webapp_unregister(f) \
 %{?debug:set -x; echo "webapp_unregister: %{name}-%{version}-%{release}: 1:[$1]; 2:[$2]"} \
 # remove link if either of the packages are gone \
-if [ -n "%{-f:1}" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/%1/webapps.d/%2.conf ]; then \
+if [ -n "%{-f:1}" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/%1/webapps.d/%(echo "%2" | tr '/' '-').conf ]; then \
        /usr/sbin/webapp unregister %1 %2\
        %{expand:%service -q %%1 reload}\
 fi \
This page took 0.166615 seconds and 4 git commands to generate.