瀏覽代碼

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'"