소스 검색

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

Ask Solem 15 년 전
부모
커밋
98e5cad974
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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'"