]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
Two syntax errors in shell scripts of mysql and clamav.
authorms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sun, 4 Nov 2007 16:25:19 +0000 (16:25 +0000)
committerms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Sun, 4 Nov 2007 16:25:19 +0000 (16:25 +0000)
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@1056 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

src/initscripts/init.d/clamav
src/paks/mysql/install.sh

index 56b14b44639226dfaf8b4e8c96515f3959516a96..1eb499ae2f25a1a613b72df38302337998cf8e4d 100644 (file)
@@ -16,7 +16,7 @@ case "$1" in
                                [ -e "/usr/share/clamav/daily.cvd" ] && \
                                        break
                        sleep 5
-                       (( $COUNTER += 1 ))
+                       COUNTER=$(($COUNTER + 1))
                done
                loadproc /usr/sbin/clamd
                ;;
index d4f81b9fbc713544b6b5cee9f7ac39d6bef9548c..805cb7822c4c666b51ce4e888fb3d2ab0f659f44 100644 (file)
@@ -37,7 +37,7 @@ while [ "$COUNTER" -lt "10" ]; do
        [ -e "/var/run/mysql/mysql.sock" ] && break
        echo "MySQL server is still not running. Waiting 5 seconds."
        sleep 5
-       (( $COUNTER += 1 ))
+       COUNTER=$(($COUNTER + 1))
 done 
 
 [ -e "/var/run/mysql/mysql.sock" ] || (echo "MySQL still noch running... Exiting."; \