From c17316d22e7fd3f2844825c10b80105413ba9a8f Mon Sep 17 00:00:00 2001 From: sprov <47310637+sprov065@users.noreply.github.com> Date: Fri, 18 Dec 2020 13:00:03 +0800 Subject: [PATCH] Update soga.sh --- soga.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/soga.sh b/soga.sh index 239da49..c6cfeb0 100644 --- a/soga.sh +++ b/soga.sh @@ -119,6 +119,10 @@ update() { fi } +config() { + soga-tool $* +} + uninstall() { confirm "确定要卸载 soga 吗?" "n" if [[ $? != 0 ]]; then @@ -228,7 +232,7 @@ disable() { } show_log() { - journalctl -u soga.service -e --no-pager + journalctl -u soga.service -e --no-pager -f if [[ $# == 0 ]]; then before_show_menu fi @@ -438,6 +442,8 @@ if [[ $# > 0 ]]; then ;; "update") check_install 0 && update 0 $2 ;; + "config") config $* + ;; "install") check_uninstall 0 && install 0 ;; "uninstall") check_install 0 && uninstall 0