This commit is contained in:
Mr Chen
2024-11-25 01:13:47 +08:00
parent 00c0c592fc
commit d7fe140ff2
41 changed files with 78 additions and 80 deletions
+2 -2
View File
@@ -119,7 +119,7 @@ export HOME=%s && ''' % ( getRunUser(), getHomeDir())
def contentReplace(content):
service_path = mw.getServerDir()
content = content.replace('{$ROOT_PATH}', mw.getRootDir())
content = content.replace('{$ROOT_PATH}', mw.getFatherDir())
content = content.replace('{$SERVER_PATH}', service_path)
content = content.replace('{$RUN_USER}', getRunUser())
content = content.replace('{$HOME_DIR}', getHomeDir())
@@ -688,7 +688,7 @@ def projectScriptLoad():
commit_tpl = getPluginDir() + '/hook/commit.tpl'
commit = path + '/custom_hooks/commit'
codeDir = mw.getRootDir() + '/git'
codeDir = mw.getFatherDir() + '/git'
cc_content = mw.readFile(commit_tpl)