changeset 12:c560b4e2f056

subdir for repos logs
author Vadim Filimonov <fffilimonov@yandex.ru>
date Thu, 28 Jul 2022 16:16:22 +0300
parents bbafc54bbd26
children 94b5c7b54978
files update.sh update_repositories.luan
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/update.sh	Thu Jul 28 16:10:05 2022 +0300
+++ b/update.sh	Thu Jul 28 16:16:22 2022 +0300
@@ -7,8 +7,9 @@
 
 ./stop.sh
 
-mkdir -p logs
+mkdir -p logs/repos
 rm -f logs/*
+rm -f logs/repos/*
 hg identify >logs/changeset.txt
 
 ${ROOTPWD}/luan.sh update_repositories.luan
--- a/update_repositories.luan	Thu Jul 28 16:10:05 2022 +0300
+++ b/update_repositories.luan	Thu Jul 28 16:16:22 2022 +0300
@@ -87,8 +87,8 @@
 		if ($request_method = POST ) {
 			set $auth "Restricted";
 		}
-		access_log  <%=logsdir%>/<%=repo.name%>_access_log;
-		error_log   <%=logsdir%>/<%=repo.name%>_error_log;
+		access_log  <%=logsdir%>/repos/<%=repo.name%>_access_log;
+		error_log   <%=logsdir%>/repos/<%=repo.name%>_error_log;
 <%	if repo.mode=="private" then %>
 		if ($request_method = GET ) {
 			set $auth "Restricted";