diff --git a/plugins/gitea/hook/self_hook.tpl b/plugins/gitea/hook/self_hook.tpl new file mode 100644 index 000000000..266f053e8 --- /dev/null +++ b/plugins/gitea/hook/self_hook.tpl @@ -0,0 +1,14 @@ +#!/bin/bash + +H_DIR={$HOOK_DIR} +HL_DIR={$HOOK_LOGS_DIR} + + +SH_LIST=`cd ${H_DIR} && ls | grep ".sh$"` + +for sh_f in $SH_LIST; do + ABS_FILE=${H_DIR}/${sh_f} + ABS_LOGS=${HL_DIR}/${sh_f}.log + echo "sh ${ABS_FILE} 2>${ABS_LOGS}" + sh -x ${ABS_FILE} 2>${ABS_LOGS} +done \ No newline at end of file diff --git a/plugins/gitea/index.html b/plugins/gitea/index.html index dac3625a5..373ee76a8 100755 --- a/plugins/gitea/index.html +++ b/plugins/gitea/index.html @@ -3,11 +3,11 @@