Преглед на файлове

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

Paul Kilgo преди 11 години
родител
ревизия
57f90eaec6
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  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'."