Reply To: bcache を有効後 advanced-cache.php でシンタックスエラー

TOP Forums バグ報告と提案(Requests and Feedback) bcache を有効後 advanced-cache.php でシンタックスエラー Reply To: bcache を有効後 advanced-cache.php でシンタックスエラー

#1480
soybeans59
Participant

    Kusanagi Runs on Docker(1.6.5) スクリプト内で不具合を見つけたので報告致します。fcache 関連のコマンド(on, off, status)を実行する際に以下のエラーがでます(内部的にはfcacheは有効になっているようです)。

    $ kusanagi-docker config fcache status
    grep: $TARGETDIR/.kusanagi.httpd: No such file or directory
    /home/ubuntu/.kusanagi/lib/config.sh: line 61: [: : integer expression expected
    INFO: fcache is off
    INFO: Done.

    下記のファイルの k_fcache 関数の修正が必要のようです。

    lib/config.sh b/lib/config.sh
    修正前: local _t="$(grep NO_USE_FCACHE= '$TARGETDIR/.kusanagi.httpd')"
    修正後: local _t="$(grep NO_USE_FCACHE= "$TARGETDIR/.kusanagi.httpd")"

    AWS EC2 UbuntuOS、MacBook いずれの環境でも同様のエラーが見受けられますので共通のエラーかと思われます。

    ご確認よろしくお願いいたします。