]> git.donarmstrong.com Git - deb_pkgs/spamass-milter.git/blobdiff - debian/spamass-milter.init
fix sense of comparison
[deb_pkgs/spamass-milter.git] / debian / spamass-milter.init
index d6296d53c9c3b4b9527c0876217dcb19cf9131d8..6c519a9b6f98e3a07b1e95458d19dce73767d362 100644 (file)
@@ -87,7 +87,7 @@ start() {
            chown "$RUNAS" $(dirname $PIDFILE);
        fi;
     fi;
-    if [ -n "$RUNAS" ] && [ -d $(dirname $PIDFILE) ] && [ "$(stat -c '%U' $(dirname $PIDFILE))" = "$RUNAS" ]; then
+    if [ -n "$RUNAS" ] && [ -d $(dirname $PIDFILE) ] && [ "$(stat -c '%U' $(dirname $PIDFILE))" != "$RUNAS" ]; then
        echo "WARNING: $NAME will run as user $RUNAS but $(dirname $PIDFILE) is not owned by $RUNAS";
        echo "Either delete this directory or chown it appropriately. Startup attempts may fail.";
     fi;