From 807cb8fe9801380a08dd2b872ab2e5c0c9c7f8bb Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 30 Nov 2022 20:19:15 +0800 Subject: [PATCH] Update install.sh --- plugins/gitea/install.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/plugins/gitea/install.sh b/plugins/gitea/install.sh index b653a7c2d..3fa68ee3d 100755 --- a/plugins/gitea/install.sh +++ b/plugins/gitea/install.sh @@ -26,9 +26,24 @@ getBit(){ echo `getconf LONG_BIT` } +Install_Rsync(){ + if [ "$OSNAME" == "debian" ] || [ "$OSNAME" == "ubuntu" ];then + apt install -y rsync + elif [[ "$OSNAME" == "arch" ]]; then + echo y | pacman -Sy rsync + elif [[ "$OSNAME" == "macos" ]]; then + # brew install rsync + # brew install lsyncd + echo "ok" + else + yum install -y rsync + fi +} + Install_App() { + Install_Rsync mkdir -p $serverPath/source/gitea