From 9f2cb588128fc3f98152ef22a3b176be73b693a8 Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 5 Oct 2022 20:50:31 +0800 Subject: [PATCH] Update index.py --- plugins/gitea/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/gitea/index.py b/plugins/gitea/index.py index c01ca1f94..dab33186e 100755 --- a/plugins/gitea/index.py +++ b/plugins/gitea/index.py @@ -101,7 +101,7 @@ def getHomeDir(): "who | sed -n '2, 1p' |awk '{print $1}'")[0].strip() return '/Users/' + user else: - return '/root' + return '/git' def getRunUser(): @@ -110,7 +110,7 @@ def getRunUser(): "who | sed -n '2, 1p' |awk '{print $1}'")[0].strip() return user else: - return 'root' + return 'git' __SR = '''#!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin