From e8d109b457c8ea4e787e4c34097f2eb6bf349d35 Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 27 Jul 2022 21:29:56 +0800 Subject: [PATCH] up --- plugins/rsyncd/info.json | 2 +- plugins/rsyncd/install.sh | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/plugins/rsyncd/info.json b/plugins/rsyncd/info.json index c23d4247b..3ab33843a 100755 --- a/plugins/rsyncd/info.json +++ b/plugins/rsyncd/info.json @@ -5,7 +5,7 @@ "name":"rsyncd", "type":"软件", "ps":"rsyncd同步助手", - "versions":"1.0", + "versions":"2.0", "shell":"install.sh", "checks":"server/rsyncd", "path": "server/rsyncd", diff --git a/plugins/rsyncd/install.sh b/plugins/rsyncd/install.sh index bf574b182..156bd0e84 100755 --- a/plugins/rsyncd/install.sh +++ b/plugins/rsyncd/install.sh @@ -25,14 +25,20 @@ Install_rsyncd() if [ "$OSNAME" == "debian'" ] || [ "$OSNAME" == "ubuntu'" ];then apt install -y rsync + apt install -y lsyncd elif [[ "$OSNAME" == "arch" ]]; then echo y | pacman -Sy rsync + echo y | pacman -Sy lsyncd + elif [[ "$OSNAME" == "macos" ]]; then + brew install rsync + brew install lsyncd else yum install -y rsync + yum install -y lsyncd fi - echo '1.0' > $serverPath/rsyncd/version.pl + echo '2.0' > $serverPath/rsyncd/version.pl echo '安装完成' > $install_tmp cd ${rootPath} && python3 ${rootPath}/plugins/rsyncd/index.py start cd ${rootPath} && python3 ${rootPath}/plugins/rsyncd/index.py initd_install @@ -51,6 +57,7 @@ Uninstall_rsyncd() if [ -f $serverPath/rsyncd/initd/rsyncd ];then $serverPath/rsyncd/initd/rsyncd stop fi + rm -rf $serverPath/rsyncd echo "卸载完成" > $install_tmp }