Jelajahi Sumber

Debian init scripts: Use -a not "&&". Thanks to jcassee. Closes #84.

Ask Solem 15 tahun lalu
induk
melakukan
98e5cad974
2 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 1 1
      contrib/debian/init.d/celerybeat
  2. 1 1
      contrib/debian/init.d/celeryd

+ 1 - 1
contrib/debian/init.d/celerybeat

@@ -93,7 +93,7 @@ if [ ! -z "$VIRTUALENV" ]; then
     fi
 fi
 
-if [ -f "$CELERYBEAT" && ! -x "$CELERYBEAT" ]; then
+if [ -f "$CELERYBEAT" -a ! -x "$CELERYBEAT" ]; then
     echo "ERROR: $CELERYBEAT is not executable."
     echo "Please make it executable by doing: chmod +x '$CELERYBEAT'"
 

+ 1 - 1
contrib/debian/init.d/celeryd

@@ -89,7 +89,7 @@ if [ ! -z "$VIRTUALENV" ]; then
 fi
 
 
-if [ -f "$CELERYD" && ! -x "$CELERYD" ]; then
+if [ -f "$CELERYD" -a ! -x "$CELERYD" ]; then
     echo "ERROR: $CELERYD is not executable."
     echo "Please make it executable by doing: chmod +x '$CELERYD'"