mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
up
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
"name":"rsyncd",
|
||||
"type":"软件",
|
||||
"ps":"rsyncd同步助手",
|
||||
"versions":"1.0",
|
||||
"versions":"2.0",
|
||||
"shell":"install.sh",
|
||||
"checks":"server/rsyncd",
|
||||
"path": "server/rsyncd",
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user