From e6cbb6a818eab95bff112da8e4f8db3824bc4786 Mon Sep 17 00:00:00 2001 From: Matthias Lucas Jaros Date: Sun, 16 Nov 2025 10:18:17 +0100 Subject: Use exec at end of scripts to replace fish process after it's done --- src/init | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/init') diff --git a/src/init b/src/init index b25637c..ffb594e 100755 --- a/src/init +++ b/src/init @@ -103,14 +103,11 @@ function setupRepo chmod -R 700 "$repoDir" end -function runSSHDaemon +function setupSSH echo "Setting up server" # generate host keys in case mkdir -p /var/ssh/etc/ssh/ && ssh-keygen -A -f /var/ssh - - # run ssh daemon - /usr/sbin/sshd -D -e end # @@ -182,4 +179,7 @@ end # create writable log file for run script touch $_LOG && chmod 777 $_LOG -runSSHDaemon +setupSSH; or return $status + +# run ssh daemon +exec /usr/sbin/sshd -D -e \ No newline at end of file -- cgit v1.3.1