Explorar o código

generic init.d: dash does not support EUID. Issue #1815

Ask Solem %!s(int64=11) %!d(string=hai) anos
pai
achega
60b91119f4
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  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 [ "$EUID" != "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 [ "$EUID" != "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'."