Browse Source

generic init.d: fix forgotten dashes. Issue #1815

Paul Kilgo 11 years ago
parent
commit
57f90eaec6
2 changed files with 2 additions and 2 deletions
  1. 1 1
      extra/generic-init.d/celerybeat
  2. 1 1
      extra/generic-init.d/celeryd

+ 1 - 1
extra/generic-init.d/celerybeat

@@ -23,7 +23,7 @@
 VERSION=10.0
 echo "celery init v${VERSION}."
 
-if [ $(id -u) ne 0 ]; then
+if [ $(id -u) -ne 0 ]; then
     echo "Error: This program can only be used by the root user."
     echo "       Unpriviliged users must use 'celery beat --detach'"
     exit 1

+ 1 - 1
extra/generic-init.d/celeryd

@@ -30,7 +30,7 @@
 #
 VERSION=10.0
 echo "celery init v${VERSION}."
-if [ $(id -u) ne 0 ]; then
+if [ $(id -u) -ne 0 ]; then
     echo "Error: This program can only be used by the root user."
     echo "       Unprivileged users must use the 'celery multi' utility, "
     echo "       or 'celery worker --detach'."