commit a5f8ad879f15f8b55995a9da7e3e3c2e9a47a33f parent 0e99e61411da5e2b8a0f0e85078d266fe5782037 Author: Matthias Jaros <jaros@mailbox.org> Date: Sun, 16 Nov 2025 10:18:17 +0100 Use exec at end of scripts to replace fish process after it's done Diffstat:
| M | src/git-run | | | 4 | ++-- |
| M | src/init | | | 11 | ++++++----- |
| M | src/version | | | 4 | ++-- |
3 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/src/git-run b/src/git-run @@ -78,4 +78,4 @@ begin end &>>$_LOG # execute parsed git command -/usr/bin/sudo -n -u git /usr/bin/git-shell -c "$gitCommand '$repoDir'" -\ No newline at end of file +exec /usr/bin/sudo -n -u git /usr/bin/git-shell -c "$gitCommand '$repoDir'" +\ No newline at end of file diff --git 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 diff --git a/src/version b/src/version @@ -1 +1 @@ -1.3 -\ No newline at end of file +1.4-SNAPSHOT +\ No newline at end of file