方法
root ユーザで bundle install
コマンドを実行すると、毎回以下の警告が表示される。
# bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.
Bundler を root として実行しないでください。Bundler は必要であれば sudo を要求することができます。root としてあなたのバンドルをインストールすると、このマシン上の全ての非 root ユーザーに対してこのアプリケーションを壊してしまいます。
「分かっとるわい!」という場合、silence_root_warning
という設定を有効にすることで、この警告を非表示にすることができる。
# bundle config silence_root_warning true