From b6f7ec11c2b26bf452b2ac455648d91d42c2f958 Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 25 Nov 2022 23:52:09 +0800 Subject: [PATCH] Update install.sh --- plugins/gitea/install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/gitea/install.sh b/plugins/gitea/install.sh index bfcf8d4f8..85d42c4e3 100755 --- a/plugins/gitea/install.sh +++ b/plugins/gitea/install.sh @@ -29,7 +29,7 @@ getBit(){ Install_App() { - + mkdir -p $serverPath/source/gitea if id git &> /dev/null ;then @@ -41,8 +41,9 @@ Install_App() fi if [ "macos" != "$OSNAME" ];then - if [ -d /home/git ];then + if [ ! -d /home/git ];then mkdir -p /home/git + chown -R git:git /home/git fi fi