summaryrefslogtreecommitdiff
path: root/src/init
diff options
context:
space:
mode:
authorGravatar Matthias Jaros <jarlucmat@mailbox.org>2026-08-03 14:59:48 +0200
committerGravatar Matthias Jaros <jarlucmat@mailbox.org>2026-08-03 14:59:48 +0200
commit0abaa1e852165a7322b727fc952503cf962970ff (patch)
treebf712e84159be10b8b12102ce25c9ba75a85c779 /src/init
parentd4e4206683d3d990f2f8b7673e46c76ddba7d168 (diff)
Log to stdout using logfile and tail -f. So everything is together in
docker log visible
Diffstat (limited to 'src/init')
-rwxr-xr-xsrc/init5
1 files changed, 4 insertions, 1 deletions
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