]> git.pld-linux.org Git - packages/roundcubemail.git/commitdiff
- extra precaution
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 16 Apr 2012 20:49:13 +0000 (20:49 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    roundcubemail.spec -> 1.126

roundcubemail.spec

index 5132b548e90f599432ad02d72c48ef8673d63a74..060929a186292247f9e904274f04cb1e3a2283ed 100644 (file)
@@ -308,7 +308,11 @@ makedesstr()
 )
 
 if grep -q '24ByteDESkey' %{_sysconfdir}/main.inc.php; then
-       %{__sed} -i -e "s/rcmail-\!24ByteDESkey\*Str/$(makedesstr)/" %{_sysconfdir}/main.inc.php
+       des=$(makedesstr)
+       # precaution if random str generation failed
+       if [ c$(echo -n "$des" | wc -c) = c24 ]; then
+               %{__sed} -i -e "s/rcmail-\!24ByteDESkey\*Str/$des/" %{_sysconfdir}/main.inc.php
+       fi
 fi
 
 %pretrans
This page took 0.059483 seconds and 4 git commands to generate.