v2fly / fhs-install-v2ray

Bash script for installing V2Ray in operating systems such as Debian / CentOS / Fedora / openSUSE that support systemd
GNU General Public License v3.0
6.28k stars 1.45k forks source link

Install script may require manual intervention when console size is small #161

Closed ghost closed 4 years ago

ghost commented 4 years ago

Problem

The script hangs on systemd-analyze cat-config output when console size is small and requires manual intervention to continue. By default, systemd-analyze cat-config automatically pipes output to a pager when output exceeds console size. This behavior should be disabled in a non-interactive script.

Proposed fix

Change https://github.com/v2fly/fhs-install-v2ray/blob/32d5d6e06051c3e1515d1d58c3f9504ba1fb18ef/install-release.sh#L35 to

systemd-analyze --no-pager cat-config "$@" 
IceCodeNew commented 4 years ago

Good catch, I'll fix this issue later.