summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/git-run2
-rwxr-xr-xsrc/init5
2 files changed, 5 insertions, 2 deletions
diff --git a/src/git-run b/src/git-run
index 7d70ef8..2b062e8 100755
--- a/src/git-run
+++ b/src/git-run
@@ -14,7 +14,7 @@ set currentUser (whoami)
###
function log --on-event log
- echo "$(date -Is): $argv[1..2] user=$currentUser $argv[3..] ip=$SSH_CONNECTION" >> $_LOG
+ echo "$argv[1..2] user=$currentUser $argv[3..] ip=$SSH_CONNECTION" >> $_LOG
end
function parseCommand
diff --git a/src/init b/src/init
index fd5bb12..0dfad14 100755
--- a/src/init
+++ b/src/init
@@ -183,9 +183,12 @@ for repoConfig in $repos
end
# create writable log file for run script
-touch $_LOG && chmod 777 $_LOG
+truncate -s 0 $_LOG && chmod 777 $_LOG
setupSSH; or return $status
+# grep log in background
+tail -f $_LOG &
+
# run ssh daemon
exec /usr/sbin/sshd -D -e