diff --git a/slurm.spec b/slurm.spec
index 7b78438148bf39c28bd384fd338e4b199a06ce43..e5342d00105f0bc3d2ddb53f8ca1a078351c9065 100644
--- a/slurm.spec
+++ b/slurm.spec
@@ -1049,7 +1049,7 @@ if [ "$1" = 0 ]; then
 	/sbin/ldconfig %{_libdir}
     fi
 fi
-%if %{?insserv_cleanup}0
+%if %{?insserv_cleanup:1}0
 %insserv_cleanup
 %endif